1

I run Linux via ubuntu in windows. My terminal has python3 instead of python. I am using a package named PASTA, which uses commands with python as:

python run_pasta.py -i input_fasta 

Since, I have python3, I am trying to run it this way:

python3 run_pasta.py -i ALL_FASTA.fasta -d protein --aligner=probcons

which gives me the following error, could anyone please tell how to fix this?

PASTA INFO: Performing initial alignment of the entire data matrix... PASTA failed because one of the programs it tried to run failed. The invocation that failed was: "/mnt/f/Projects/WoldringLab/AnalyzingGenerativeModel/pasta-code/pasta/bin/hmmeralign" "/home/aryaman3900/.pasta/pastajob/temp569cp9x3/init_aln/temphmmeralignourpmnyw/input.fasta" "/home/aryaman3900/.pasta/pastajob/temp569cp9x3/init_aln/query-0.fasta" "/home/aryaman3900/.pasta/pastajob/temp569cp9x3/init_aln/temphmmeralignourpmnyw/input.aligned" "amino"

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

1 Answer 1

2

You can create a symlink (symbolical link) from python3 to python. What this will do is just to map each call to /usr/bin/python to your python3 executable:

sudo ln -s $(which python3) /usr/bin/python

You can learn more about the ln command by reading its man page via man ln.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.