简体   繁体   中英

Wrong executable path for python in linux

In linux bash, I need to run an application (HTSeq) which uses python. When I run the command I get this error:

-bash: /app/HTSeq-0.5.3p7/bin/htseq-count: /usr/bin/python26: bad interpreter: No such file or directory

The thing is that I do not have "python26" in my executable path. So in my /usr/bin/ path I have followings:

/usr/bin/python2.6 /usr/bin/python

I think sometimes I have manually changed something incorrectly. But how can I fix it? Thanks in advance.

尝试使用sudo mv /usr/bin/python2.6 /usr/bin/python26将“ python2.6”重命名为“ python26”

Well, since you don't have sudo rights, you could try this:

First create a symlink,

ln -s /usr/bin/python2.6 ~/Desktop/python26

and then adding the symlink dir to your PATH variable

export PATH=$PATH:/home/<your account>/Desktop

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM