初めて Travis-CI をセットアップしています。標準的な方法であると私が信じている方法でscipyをインストールします。
language: python
python:
- "2.7"
# command to install dependencies
before_install:
- sudo apt-get -qq update
- sudo apt-get -qq install python-numpy python-scipy python-opencv
- sudo apt-get -qq install libhdf5-serial-dev hdf5-tools
install:
- "pip install numexpr"
- "pip install cython"
- "pip install -r requirements.txt --use-mirrors"
# command to run tests
script: nosetests
すべてが構築されます。しかし、鼻のテストが始まると、私は得る
ImportError: No module named scipy.ndimage
更新:これは、問題のより直接的なデモンストレーションです。
$ sudo apt-get install python-numpy python-scipy python-opencv
$ python -c 'import scipy'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named scipy
The command "python -c 'import scipy'" failed and exited with 1 during install.
私もpipを使ってscipyをインストールしてみました。最初にgfortranをインストールしてみました。失敗したビルドの一例を次に示します。助言がありますか?
別の更新: Travis はその後、Travis で conda を使用することに関する公式ドキュメントを追加しました。ostrokach の回答を参照してください。