Readthedocs突然无法安装scipy

时间:2018-01-15 19:22:54

标签: 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

任何人都有任何想法如何解决这个问题?

谢谢,   迈克尔

1 个答案:

答案 0 :(得分:1)

这是因为我们没有在readthedocs正在使用的requirements.txt中指定scipy!

(我们之所以没有,原因是我们有一个单独的requirements-docs.txt没有列出requirements.txt中已有的内容。通过添加一行{{1}来解决问题在-r requirements.txt的顶部,包含requirements-docs.txt

中的所有内容