AttributeError: 模块 Pip 没有属性“main" [英] AttributeError: Module Pip has no attribute 'main'
问题描述
我正在尝试为名为 Zulip 的开源项目构建 python api,但我一直遇到如下屏幕截图所示的相同问题.
I am trying to build the python api for an open source project called Zulip and I keep running into the same issue as indicated by the screenshot below.
我正在运行 python3,我的 pip 版本是 10.0.0.有问题的文件是 setup.py
并且混乱的代码是在访问 pip.main()
属性以安装包时.
I am running python3 and my pip version is 10.0.0. The file in question is setup.py
and the code that is messing up is when the pip.main()
attribute is accessed to install a package.
现在,我知道这个构建应该会成功,因为它是一个开源项目,但我一直在努力解决关于 pip.main()
的依赖问题.
Now, I know this build should succeed because its an open source project, but I have been trying for hours to fix the dependency issue regarding pip.main()
.
任何帮助将不胜感激.
推荐答案
python3 -m pip install --user --upgrade pip==9.0.3
这篇关于AttributeError: 模块 Pip 没有属性“main"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!