scipy的构建轮(setup.py):状态为“错误”

比约恩

我正在尝试构建一个Docker映像并使用requirements.txt文件安装这些要求:

numpy==1.18.1
scipy==1.2.1
joblib==0.13.2
Cython==0.29.13
pandas==0.25.3
scikit-learn==0.21.3
h5py==2.8.0
Keras==2.3.1
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.0

这是我的dockerfile:

FROM python:3

MAINTAINER [email protected]

RUN mkdir /test
COPY ./ /test
WORKDIR /test

## Install your dependencies here using apt-get etc.


RUN pip install -r requirements.txt

当我尝试构建theThis是错误消息

ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-d0v5nn_0/scipy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-d0v5nn_0/scipy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-u8mo7l4r
       cwd: /tmp/pip-install-d0v5nn_0/scipy/
  Complete output (9 lines):
  /tmp/pip-install-d0v5nn_0/scipy/setup.py:114: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
    import imp
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-d0v5nn_0/scipy/setup.py", line 492, in <module>
      setup_package()
    File "/tmp/pip-install-d0v5nn_0/scipy/setup.py", line 468, in setup_package
      from numpy.distutils.core import setup
  ModuleNotFoundError: No module named 'numpy'
  ----------------------------------------
  ERROR: Failed building wheel for scipy

在此之后,它还会尝试运行

Running setup.py clean for scipy

但没有成功

雅克·高丁

不知道这是否是错误的原因,但考虑Numpy 1.18.1发行说明,您应该使Cython≥0.29.14而requirements.txt指定了Cython==0.29.13

FROM python:3 结果得到Python 3.8。

此版本中支持的Python版本为3.5-3.8。下游开发人员应使用Cython> = 0.29.14获得Python 3.8支持,并使用OpenBLAS> = 3.7,以避免Skylake体系结构上的错误。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

dlib的setup.py安装:状态为“错误”

为cffi运行setup.py bdist_wheel加密失败的构建轮

错误:命令出错,退出状态为 1:python setup.py egg_info 在安装 MySQL-python 时检查

命令错误,退出状态为1:python setup.py egg_info检查日志以获取完整的命令输出-在通过pip安装auto-py-to-exe时

安装 JupyterLab 时构建轮错误

错误:命令出错,退出状态为 1:python setup.py egg_info。pip 安装时出现语法错误。如何解决?

错误:命令错误,退出状态为1:python setup.py egg_info检查日志以获取完整的命令输出。尝试安装dotenv时

错误django-softdelete:命令错误,退出状态为1:python setup.py egg_info检查日志以获取完整的命令输出

错误:命令错误,退出状态为1:python setup.py egg_info检查日志以获取完整的命令输出。[烧瓶]

神经渲染器-pytorch(setup.py)的构建轮...安装多人和神经网格渲染器不适用于pytorch 1.6

错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整的命令输出,同时 pip 安装遗传算法

Cygwin:(python)错误:密码学构建轮失败

错误:安装wx时wxpython-phoenix的构建轮失败

错误:“python setup.py egg_info”失败,错误代码为 1

Ubuntu 16.04上box2d.py的构建轮失败

发行RaspberryPi 3b +和docker compose:安装构建依赖项:状态为“错误”

无法在Google Colab上安装pyaudio,并显示“错误:pyaudio的构建轮失败”

错误:psycopg2的构建轮失败-MacOS Mojave 10.14.16 python 3

清理setup.py中的构建目录

从setup.py构建通用轮子

Python 3.5 setup.py egg_info失败,错误代码为1 [Linux]

python setup.py egg_info 失败,错误代码为 1

“ pip安装模型”-“ python setup.py egg_info”失败,错误代码为1

“ python setup.py egg_info失败,错误代码为1

为RK3066设备构建Android时涉及subprocess.py的错误

Python /安装cvxpy软件包错误-setup.py egg_info,错误代码为1

提示安装“ python setup.py egg_info”的Pip安装失败,错误代码为1错误

pip安装错误命令“ python setup.py egg_info”失败,错误代码为1

使用snapcraft构建python2 snap,python setup.py egg_info错误