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是一个好网站,只要耐下心来,仔细思考就可以解决这些问题。

猜你喜欢

转载自www.cnblogs.com/pprp/p/9461983.html