python - readthedocs突然无法安装scipy

标签 python scipy read-the-docs

突然之间,readthedocs 无法构建我们的项目。据我所知,这是由于 scipy 1.0.0,并且出于某种原因它认为它在 Windows 上运行?所有构建都失败并出现以下错误:

Installed /home/docs/checkouts/readthedocs.org/user_builds/pints/envs/latest/lib/python3.5/site-packages/pints-0.0.1-py3.5.egg
Processing dependencies for pints==0.0.1
Searching for scipy>=0.13
Reading https://pypi.python.org/simple/scipy/
Downloading https://pypi.python.org/packages/d0/73/76fc6ea21818eed0de8dd38e1e9586725578864169a2b31acdeffb9131c8/scipy-1.0.0.tar.gz#md5=53fa34bd3733a9a4216842b6000f7316
Best match: scipy 1.0.0
Processing scipy-1.0.0.tar.gz
Writing /tmp/easy_install-2lr9ts8l/scipy-1.0.0/setup.cfg
Running scipy-1.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-2lr9ts8l/scipy-1.0.0/egg-dist-tmp-v00htrtw
Warning: Can't read registry to find the necessary compiler setting
Make sure that Python modules winreg, win32api or win32con are installed.
/tmp/easy_install-2lr9ts8l/scipy-1.0.0/setup.py:323: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
  warnings.warn("Unrecognized setuptools command, proceeding with "
/home/docs/checkouts/readthedocs.org/user_builds/pints/envs/latest/lib/python3.5/site-packages/numpy/distutils/system_info.py:624: UserWarning: 
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  self.calc_info()
/home/docs/checkouts/readthedocs.org/user_builds/pints/envs/latest/lib/python3.5/site-packages/numpy/distutils/system_info.py:624: UserWarning: 
    Lapack (http://www.netlib.org/lapack/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [lapack]) or by setting
    the LAPACK environment variable.
  self.calc_info()
/home/docs/checkouts/readthedocs.org/user_builds/pints/envs/latest/lib/python3.5/site-packages/numpy/distutils/system_info.py:624: UserWarning: 
    Lapack (http://www.netlib.org/lapack/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [lapack_src]) or by setting
    the LAPACK_SRC environment variable.
  self.calc_info()
Running from scipy source directory.
error: no lapack/blas resources found

有人知道如何解决这个问题吗?

谢谢, 迈克尔

最佳答案

发生这种情况是因为我们没有在 readthedocs 使用的 requirements.txt 中指定 scipy!

(我们没有这样做的原因是我们有一个单独的 requirements-docs.txt,它没有列出 requirements.txt 中已有的内容。解决了这个问题通过在 requirements-docs.txt 顶部添加一行 -r requirements.txt 来包含 requirements.txt 中的所有内容)

关于python - readthedocs突然无法安装scipy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48269425/

相关文章:

python - 使平面适合 3D 中的一组点 : scipy. optimize.minimize vs scipy.linalg.lstsq

python - 替换numpy数组值python

python - 阅读文档本地安装 : Celery ValueError: signal only works in main thread

python - Tensorflow model.fit() 使用数据集生成器

python - 分割验证码图像中的字母

python - 检查数字是否为回文而不将其更改为字符串

python - 查找草率手绘矩形的属性

python - 在连续时间帧上应用 IIR 滤波器时的连续性问题

favicon - 如何为 mkdocs 网站添加 favicon?

python - 在 sphinx 和 github - 相关链接中使用相同的 README 内容