Anaconda 环境中使用pip安装时候出现的一些问题||AttributeError: Module Pip has no attribute 'main'

it2025-03-14  21

https://www.cnblogs.com/pprp/p/9461983.html

---

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' reference:https://stackoverflow.com/questions/43169218/attributeerror-namespacepath-object-has-no-attribute-sort

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

easy_install pip easy_install setuptools

成功了

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

代码改变世界

最新回复(0)