【发布时间】:2018-08-24 13:26:04
【问题描述】:
我正在尝试通过
在 jenkins 中安装 python 需求pip install requirements.cfg
现在我在需求文件中有 3 个包:numpy、pandas 和 tslearn。 Numpy 和 pandas 安装正确,当尝试安装 tslearn 时失败,因为“未安装 numpy”。我正在 conda 虚拟环境中安装。
这是一个詹金斯的工作输出:
Collecting numpy==1.14.3 (from -r pip_requirements.cfg (line 1))
Using cached https://files.pythonhosted.org/packages/20/09/6f302aba4a08ffcd34b20a6ee94f34a76207105f59acd83462b81469c06e/numpy-1.14.3-cp35-none-win_amd64.whl
Collecting pandas==0.19.2 (from -r pip_requirements.cfg (line 2))
Using cached https://files.pythonhosted.org/packages/d9/c9/0197da1728e813d37b8b38f795aac95ea0c334b75b365078b2b8476dcd11/pandas-0.19.2-cp35-cp35m-win_amd64.whl
Collecting tslearn>=0.1.9 (from -r pip_requirements.cfg (line 3))
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/5e/9e/4315deb6e42ed0fc8dc5e233c90b6b843199686119d5429b835a4ca25e41/tslearn-0.1.19.2.tar.gz (584kB)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\econib.ci\AppData\Local\Temp\pip-build-s3wdsvej\tslearn\setup.py", line 2, in <module>
import numpy
ImportError: No module named 'numpy'
任何想法为什么会发生这种情况?
【问题讨论】:
-
我将 pip 更改为 pip3,现在在尝试安装 tslearn 时,输出显示“ModuleNotFoundError: No module named 'Cython'”
标签: python python-3.x numpy jenkins pip