詹金斯不能看到anaconda python

时间:2014-10-13 19:01:33

标签: python jenkins jenkins-plugins anaconda

试图让jenkins与anaconda python一起工作。我正在使用shiningpanda插件和python插件。

每当我尝试将python安装设置为指向我的python 2.7可执行文件/home/lminer/anaconda/bin/python2.7时,我都会收到消息,它既不是目录也不是可执行文件。是否存在2.7兼容性问题?

编辑: 这是我的蟒蛇信息

# which python
/home/lminer/anaconda/bin/python2
# ls -l /home/lminer/anaconda/bin/python*
lrwxrwxrwx 1 root root     7 Oct  9 17:02 /home/lminer/anaconda/bin/python -> python2
lrwxrwxrwx 1 root root     9 Oct  9 17:02 /home/lminer/anaconda/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 10038 Oct  9 17:02 /home/lminer/anaconda/bin/python2.7
-rwxr-xr-x 1 root root  1600 Oct  9 17:02 /home/lminer/anaconda/bin/python-argcomplete-check-easy-install-script
-rwxr-xr-x 1 root root  1678 Oct  9 17:02 /home/lminer/anaconda/bin/python-config

不确定如何就错误提供证据。我去了Jenkins > configuration > Python > Python Installations。在Home or executable下,我添加了/home/lminer/anaconda/bin/python2.7/home/lminer/anaconda/bin/python/home/lminer/anaconda/bin/。每次框内红色的消息都显示为:Neither a directory nor an executable

如果我改为指向/usr/bin/python2.6

,我就不会遇到此问题

1 个答案:

答案 0 :(得分:0)

原来我没有正确设置权限。一旦我让每个人都从中执行,就会识别该目录。如果有更好的方法,可能将python移动到其他位置,请告诉我。

相关问题