使用brew升级python后,报了command not found: pip3
的错误,并且使用pip
时会出现另外一个错误:
Traceback (most recent call last):
File “/usr/local/bin/pip”, line 7, in
from pip._internal import main
File “/usr/local/lib/python3.6/site-packages/pip/_internal/init.py”, line 41, in
from pip import version
ImportError: cannot import name ‘version’
解决办法:
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
此时pip2
能够成功执行
但是pip3
仍然会报command not found: pip3
的错误
wget https://pypi