I’m working on Ex. 46 of Learn Python 3 the Hard Way.
When I input “pip3.6” list I get the following:
Last login: Mon Jun 21 10:16:59 on ttys000
The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh
.
For more details, please visit https://support.apple.com/kb/HT208050.
HAROLDs-MacBook-Pro:~ haroldmathews$ cd Documents/Hello
HAROLDs-MacBook-Pro:Hello haroldmathews$ pip3.6 list
-bash: pip3.6: command not found
HAROLDs-MacBook-Pro:Hello haroldmathews$ pip3.9 list
Package Version
pip 20.2.3
pydealer 1.4.0
pygame 2.0.1
setuptools 49.2.1
WARNING: You are using pip version 20.2.3; however, version 21.1.2 is available.
You should consider upgrading via the ‘/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -m pip install --upgrade pip’ command.
HAROLDs-MacBook-Pro:Hello haroldmathews$ /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -m pip install --upgrade pip
Collecting pip
Downloading pip-21.1.2-py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 2.7 MB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.2.3
Uninstalling pip-20.2.3:
Successfully uninstalled pip-20.2.3
Successfully installed pip-21.1.2
HAROLDs-MacBook-Pro:Hello haroldmathews$
When I tried 3.6 I got:
-bash: pip3.6: command not found
That’s when I discovered I had Version 3.9. How did that happen?
So, when I input “pip3.9 list” I found out my pip version was out of date. Fortunately, Iwas able to upgrade to 21.1.2.
Next I tried "sudo pip3.6 install virtualenv"and I was asked for a password. I have no idea how to respond. Can you help me?