Hisat2-build에서 /usr/bin/env: python: Permission denied 오류

2022. 11. 30. 16:48리눅스

728x90
반응형

Hisat2-build를 실행했을 때, 다음과 같은 오류가 발생했다.

/usr/bin/env: python: Permission denied

 

python의 권한 문제인가 싶었지만, python --version 명령어는 정상적으로 작동했다.

which python으로 봤더니 python이 설치된 경로가 /usr/bin/python3인 것 같았다.

아마도 hisat2-build 내부 스크립트에서 설정한 python 설치 경로(/usr/bin/env)와 실제 존재하는 경로(/usr/bin/)가 달라서 일어나는 오류인 모양이다.

해결방법은 hisat2-build 대신

python '/hisat2가 설치된 경로/hisat2-build'로 실행하니 실행되었다.

python '/hisat2가 설치된 경로/hisat2-build' [reference genome.fa] [output파일이름]

 

참고: https://www.biostars.org/p/9494176/#9494632

 

hisat2 /usr/bin/env: ‘python’: No such file or directory

hisat2 /usr/bin/env: ‘python’: No such file or directory 1 Hi all, I am really struggling with hisat2 recently and getting confused. I'm trying to run hisat2: hisat2-build -p 2 genome.fa genome This is my error: /usr/bin/env: ‘python’: No such file

www.biostars.org

 

728x90
반응형