I have installed python3.5 on my server. I installed pysher with pip3, everything works fine, in python3.5 terminal, I can use import pysher without error. Now, I develop script, where is some python3.6 features, so I installed python3.6 on my server and now, I am not able to import pysher in python3.6 terminal:
>>> import pysher Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'pysher' So I tried install pysher again:
# pip3 install pysher The program 'pip3' is currently not installed. You can install it by typing: apt install python3-pip Even when I konw I have installed python3-pip, I tried it agian:
# apt install python3-pip Reading package lists... Done Building dependency tree Reading state information... Done python3-pip is already the newest version (8.1.1-2ubuntu0.4). 0 upgraded, 0 newly installed, 0 to remove and 138 not upgraded. Of course, I can rewrite my second script to work with python3.5, but I am curious why it is not working and how to repair it.
UPDATE 1:
dpkg -L python3-pip | grep bin /usr/bin /usr/bin/pip3 export PATH="$PATH:/usr/bin/pip3" pip3 search pysher The program 'pip3' is currently not installed. You can install it by typing: apt install python3-pip This did not work, so I try get version of pip3:
# /usr/bin/pip3 --version -bash: /usr/bin/pip3: No such file or directory pip3 is not in /usr/bin/.
apt-get install python3.6.