Anaconda 环境中使用pip安装时候出现的一些问题



author:pprp
date:18/8/12

1. AttributeError: Module Pip has no attribute 'main'

solution:降低pip的版本

python -m pip install --upgrade pip==9.0.3

2. AttributeError: '_NamespacePath' object has no attribute 'sort'

  • recommend you try this:
pip install --upgrade pip setuptools

​ Failed

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.5/dist-packages/setuptools-19.6-py3.5.egg'

Had the same issue with pip install. The following worked for me.

easy_install pip
easy_install setuptools

成功了

StackOverflow是一个好网站,只要耐下心来,仔细思考就可以解决这些问题。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM