安装石墨碳时出错

时间:2016-12-30 13:14:53

标签: python pip graphite

我正在尝试通过运行以下命令来安装 graphite carbon (版本0.9.15)要求:

pip --proxy http://<proxy-host>:<proxy-port> install -r requirements.txt

requirements.txt包含以下内容:

Twisted>=13.2.0
git+git://github.com/graphite-project/whisper.git@0.9.13#egg=whisper
mocker==1.1.1
mock

然而,当我运行上述命令时,我得到:

Collecting Twisted>=13.2.0 (from -r requirements.txt (line 1))
  Using cached Twisted-16.6.0.tar.bz2
    Complete output from command python setup.py egg_info:
    Download error on https://pypi.python.org/simple/incremental/: [Errno 101] Network is unreachable -- Some packages may not be found!
    Couldn't find index page for 'incremental' (maybe misspelled?)
    Download error on https://pypi.python.org/simple/: [Errno 101] Network is unreachable -- Some packages may not be found!
    No local packages or download links found for incremental>=16.10.1
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-6klpfA/Twisted/setup.py", line 21, in <module>
        setuptools.setup(**_setup["getSetupArgs"]())
      File "/usr/lib64/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/opt/graphite/lib/python2.7/site-packages/setuptools/dist.py", line 269, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/opt/graphite/lib/python2.7/site-packages/setuptools/dist.py", line 313, in fetch_build_eggs
        replace_conflicting=True,
      File "/opt/graphite/lib/python2.7/site-packages/pkg_resources/__init__.py", line 827, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/opt/graphite/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1072, in best_match
        return self.obtain(req, installer)
      File "/opt/graphite/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1084, in obtain
        return installer(requirement)
      File "/opt/graphite/lib/python2.7/site-packages/setuptools/dist.py", line 380, in fetch_build_egg
        return cmd.easy_install(req)
      File "/opt/graphite/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 634, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('incremental>=16.10.1')

奇怪的是,当通过代理访问https://pypi.python.org/simple/incremental/索引页面时,我看到有一个 incremental-16.10.1.tar.gz 包。

这可能是什么问题?这是与网络相关的问题还是与点相关的问题?

0 个答案:

没有答案