使用pip将Python包安装为UNKNOWN

时间:2014-08-12 13:18:15

标签: python pip

我尝试安装像pycadf这样的软件包。它失败了以下错误:

Searching for pycadf>=0.4.1
Reading https://pypi.python.org/simple/pycadf/
Best match: pycadf 0.5.1
Downloading https://pypi.python.org/packages/source/p/pycadf/pycadf-0.5.1.tar.gz#md5=0386d95acb2045231fbcbe12fcaa2779
Processing pycadf-0.5.1.tar.gz
Writing /tmp/easy_install-93QzI3/pycadf-0.5.1/setup.cfg
Running pycadf-0.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-93QzI3/pycadf-0.5.1/egg-dist-tmp-DumyVX
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'pbr'
  warnings.warn(msg)
warning: install_lib: 'build/lib.linux-x86_64-2.7' does not exist -- no Python modules to install

zip_safe flag not set; analyzing archive contents...
Adding UNKNOWN 0.0.0 to easy-install.pth file

Installed /usr/local/lib/python2.7/dist-packages/UNKNOWN-0.0.0-py2.7.egg
error: Could not find required distribution pycadf>=0.4.1

看起来它从pypi获取包,将其安装为“UNKNOWN”。每个包都不会发生这种情况。 setuptools-5.5.1安装在我的环境中。

要解决的任何输入都会有所帮助。

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。对我来说,解决方案是更新setuptools。