Dan*_*lan 8 python pandas travis-ci anaconda
看起来conda改变了它今天所寻找的默认版本,因为conda install numpy scipy它目前不起作用:
$conda create numpy scipy -n test-build-issue3 --dry-run
Error: Unsatisfiable package specifications
Hint: the following combinations of packages create a conflict with the
remaining packages:
- numpy 1.7*
- scipy
Run Code Online (Sandbox Code Playgroud)
如果我提供特定版本,我可以在本地设置工作环境.
conda create numpy=1.7.1 scipy=0.13.0 pandas=0.13.0 matplotlib=1.3 PIL -n test-build --dry-run
Run Code Online (Sandbox Code Playgroud)
但是在Travis上,虽然conda报告已经安装并链接了pandas,但测试套件引发了一个ImportError:
$ nosetests --nologcapture -a '!slow'
E
(...)
ImportError: No module named pandas
Run Code Online (Sandbox Code Playgroud)
这里是完整失败构建的一个例子.
测试套件昨天正常通过.我对Travis有很多经验,但在运行和调试conda方面经验较少.有什么建议?
感谢anaconda邮件列表上的人们,这已经解决了.
今天,ContinuumIO更新了conda,但不是miniconda,这是我的困境的原因.为了保护自己免受这种情况的影响,请在安装前添加以下行:
- conda update --yes conda
Run Code Online (Sandbox Code Playgroud)