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()
.
任何帮助将不胜感激.
Any help would be greatly appreciated.
推荐答案
python3 -m pip install --user --upgrade pip==9.0.3
这篇关于AttributeError:模块Pip没有属性'main'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!