为什么我不能安装requirements.txt内容?

时间:2018-03-12 16:09:35

标签: python pip virtualenv

(env) user@name:~/$ pip install -r requirements.txt
Collecting Shapely==1.5.13 (from -r requirements.txt (line 1))
  Using cached Shapely-1.5.13.tar.gz
    Complete output from command python setup.py egg_info:
    Failed `CDLL(libgeos_c.so.1)`
    Failed `CDLL(libgeos_c.so)`
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-p0Fy8v/Shapely/setup.py", line 38, in <module>
        from shapely._buildcfg import geos_version_string, geos_version, \
      File "/tmp/pip-build-p0Fy8v/Shapely/shapely/_buildcfg.py", line 167, in <module>
        fallbacks=['libgeos_c.so.1', 'libgeos_c.so'])
      File "/tmp/pip-build-p0Fy8v/Shapely/shapely/_buildcfg.py", line 161, in load_dll
        libname, fallbacks or []))
    OSError: Could not find library geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so']

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-p0Fy8v/Shapely/

requirements.txt内容:

Shapely==1.5.13
Flask==0.10.1
matplotlib==1.5.1
scipy==0.19.0
plumbum==1.6.2
numpy==1.12.1
ipython==5.5
Pillow==4.2.1
opencv-python==3.2.0.6

尝试运行pip install -r requirements.txt,但我继续得到上面描述的错误,我只是安装了python和pip,基本上是我在linux 16.04上的格式之后的其他所有内容,所以不确定出了什么问题。

编辑: 我从requirements.txt中删除了Shapely==1.5.13来测试它是否存在;问题是我再次收到错误Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-oVKNjq/matplotlib/

0 个答案:

没有答案