2017-04-21 208 views
2

我试图运行:错误的PIP安装boto3

pip install boto3 

但我发现了这个错误:

DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project. 
OSError: [Errno 1] Operation not permitted: '/tmp/pip-ueLGpf-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info' 
+0

也许权限问题。试试'sudo pip install boto3' – luoluo

+0

这个问题在[这里]描述(https://github.com/pypa/pip/issues/3165)。试试:'pip install --ignore-installed six' – elethan

+1

在python中,总是要设置一个虚拟开发环境,例如virtualenv或conda:http://python-guide-pt-br.readthedocs.io/en/latest/dev/virtualenvs/ – mootmoot

回答

5

尝试

pip install --ignore-installed boto3 
+0

谢谢,它的工作! –