Why can’t I change my python version

Why can’t I change my python version

0

I am using some bioinformatics software that requires a python2 environment. I use conda to create a new environment and specify the python version as 2.7.18, but when I type ‘python’
I find that the python version is 3.9.5. I use the ‘which python’code, and ls -l the link, and get return

> lrwxrwxrwx 1 leelee leelee 9 9月  22 20:06 /home/leelee/miniconda3/envs/clear2/bin/python -> python2.7

I type ‘python2.7’ and got the version I wanted. But it is still 3.9.5 when type ‘python’. I am very confused about this, how can I solve this problem.


python

• 81 views

Read more here: Source link