AttributeError: 模块 Pip 没有属性“main" [英] AttributeError: Module Pip has no attribute 'main'

查看:35
本文介绍了AttributeError: 模块 Pip 没有属性“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

pip 问题:回滚

这篇关于AttributeError: 模块 Pip 没有属性“main"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆