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