我有问题在Travis CI python 3.7环境中设置我的项目,虽然只是在python 3.6中运行'pip install scipy'工作正常。在[1]之前报告了许多相似/相同的问题和解决方案,但答案对我不起作用。
谁能帮助解释为什么它适用于python 3.6 [2],而在Travis CI服务器中使用python 3.7失败?
我终于尝试使用以下脚本,但它仍然无法在Travis CI(python 3.7)环境中使用。 Travis CI(python 3.6和python 3.6 dev)仍然可以正常工作。
python -m pip install --upgrade pip
pip install --upgrade pip setuptools wheel
sudo apt-get build-dep python-scipy
sudo apt-get install -qq python-scipy
pip install scipy
...
[1] https://github.com/travis-ci/travis-ci/issues/2890
[2] https://travis-ci.org/jerrygaoLondon/jgtextrank/jobs/323822420
错误:
Building wheels for collected packages: scipy
Running setup.py bdist_wheel for scipy ... error
Complete output from command /home/travis/virtualenv/python3.7-dev/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-j7d10poq/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/tmp2u1cz0lipip-wheel- --python-tag cp37:
lapack_opt_info:
lapack_mkl_info:
libraries mkl_rt not found in ['/home/travis/virtualenv/python3.7-dev/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
...
有关错误的更多详细信息,请查看https://travis-ci.org/jerrygaoLondon/jgtextrank/jobs/323822422
Python 3.7还没有二进制轮(列表在https://pypi.python.org/pypi/scipy上)所以pip下载SciPy的源包并尝试编译它。这大部分时间都失败了,因为您需要一个完整的Python开发环境和各种库(带有开发头的BLAS和LAPACK),请参阅https://scipy.org/install.html和https://github.com/scipy/scipy/blob/master/INSTALL.rst.txt。
你的解决方案