Could not find suitable distribution for equirement.parse(‘pbr’)

Python

以下のコマンドで仮想環境を作成するとき、以下のエラーが発生しました。

ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘/tmp/pip-install-S_7pmi/virtualenvwrapper/setup.py'”‘”‘; __file__='”‘”‘/tmp/pip-install-S_7pmi/virtualenvwrapper/setup.py'”‘”‘;f=getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__);code=f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base /tmp/pip-pip-egg-info-d0jEvu
cwd: /tmp/pip-install-S_7pmi/virtualenvwrapper/
Complete output (23 lines):
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-install-S_7pmi/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’)
—————————————-
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

解決方法:

pip install pbr
タイトルとURLをコピーしました