错误:py35:InterpreterNotFound:即使安装了python3.5,python3.5

时间:2018-06-26 01:46:17

标签: python docker continuous-integration tox

我正在通过docker tox在CI(竹子)上运行构建

我的tox.ini看起来像这样

[tox]
envlist = py27,py35
[testenv]
deps=-rrequirements.txt
commands=pytest

我正在像这样运行测试

tox --recreate -vv -i $myindexserver

在本地测试设置有效(在docker内部)

  

py27:命令成功
  py35:命令成功
  恭喜:)

但是在CI实例上运行相同的操作时,由于

而失败
  

___________________________________摘要_________________________________

     

py27:命令成功
  错误:py35:InterpreterNotFound:python3.5

在docker内部运行which python3which python3.5成功

有人遇到过类似的问题吗?

1 个答案:

答案 0 :(得分:0)

事实证明,我本地使用的docker容器版本和CI使用的docker容器版本是不同的。

我在这里保留答案,希望其他人觉得这很有用,并可能节省我不得不浪费的大量调试时间。

执行docker images来查找您在本地使用的标签,并对照CI中运行的版本进行检查。

相关问题