Complete output from command python setup.py egg_info: Couldn't find index page for 'pbr' (maybe misspelled?) No local packages or download links found for pbr Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-cZ8DNR/virtualenvwrapper/setup.py", line 7, in <module> pbr=True, File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup _setup_distribution = dist = klass(attrs) File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 265, in __init__ self.fetch_build_eggs(attrs.pop('setup_requires')) File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 289, in fetch_build_eggs parse_requirements(requires), installer=self.fetch_build_egg File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 618, in resolve dist = best[req.key] = env.best_match(req, self, installer) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 862, in best_match return self.obtain(req, installer) # try and download/install File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 874, in obtain return installer(requirement) File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 339, in fetch_build_egg return cmd.easy_install(req) File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 617, in easy_install raise DistutilsError(msg) distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr') ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-cZ8DNR/virtualenvwrapper/ 出现了什么错误?该如何解决?
时间: 2024-04-23 22:27:24 浏览: 185
Python库 | pbr-4.3.0-py2.py3-none-any.whl
5星 · 资源好评率100%
根据你提供的错误信息,看起来是在安装 `virtualenvwrapper` 时出现了问题。具体来说,错误指出找不到 `pbr` 这个依赖库。
要解决这个问题,你可以尝试以下几种方法:
1. 确保你的系统已经安装了 `pbr` 库。你可以使用以下命令来安装 `pbr`:
```
pip install pbr
```
如果已经安装了 `pbr`,可能是版本不兼容导致的问题。你可以尝试升级 `pbr`,使用以下命令:
```
pip install --upgrade pbr
```
2. 如果你已经安装了 `pbr` 并且仍然遇到问题,可能是因为网络连接导致无法下载 `pbr`。在某些情况下,网络访问受限或存在代理设置,导致无法正常下载依赖库。你可以尝试更改网络环境或检查代理设置,并重新运行安装命令。
3. 如果上述方法都无效,你可以尝试通过手动安装 `virtualenvwrapper` 来解决问题。首先,在你的浏览器中搜索并下载 `virtualenvwrapper` 的源代码(通常是一个压缩文件)。然后,将压缩文件解压缩到一个临时文件夹中。最后,进入解压缩后的文件夹,在命令行中运行以下命令来安装 `virtualenvwrapper`:
```
python setup.py install
```
这将手动安装 `virtualenvwrapper`,绕过依赖库的自动安装过程。
如果你还是无法解决问题,请提供更多的错误信息或上下文,这样我才能更准确地帮助你。
阅读全文