赞
踩
使用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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。