You need do use pip from command line,not interactive shell as you do now.
Also do basic test of
python
and
pip
commands.
So if i do
pip install PyQt5
it will only install to 3.7,see that
pip
for me point to 3.7 in Windows and Linux.
Windows:
C:\
λ python -V
Python 3.7.3
# Python executable that run code
C:\
λ python -c "import sys; print(sys.executable)"
C:\python37\python.exe
# Version and Placement of pip
C:\
λ pip -V
pip 19.1.1 from c:\python37\lib\site-packages\pip (python 3.7)
Linux:
tom@tom-VirtualBox:~$ python -V
Python 3.7.3
# Python executable that run code
tom@tom-VirtualBox:~$ python -c "import sys; print(sys.executable)"
/home/tom/.pyenv/versions/3.7.3/bin/python
# Version and Placement of pip
tom@tom-VirtualBox:~$ pip -V
pip 19.0.3 from /home/tom/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pip (python 3.7)
tom@tom-VirtualBox:~$ pip3 -V
pip 19.0.3 from /home/tom/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pip (python 3.7)