Conda activate not working?

前端 未结 16 1546
失恋的感觉
失恋的感觉 2020-12-02 16:38
 gonzo  ~/a/packages  conda env list
# conda environments:
#
ppo_latest               /nohome/jaan/abhishek/anaconda3/envs/ppo_latest
root                  *  /noh         


        
16条回答
  •  渐次进展
    2020-12-02 16:59

    If nothing works for you, you can specify the full path of your python environment setup by conda.

    For me, I set up an environment called "testenv" using conda.

    I searched all python environments using

    whereis python | grep 'miniconda'
    

    It returned a list of python environments. Then I ran my_python_file.py using the following command.

    ~/miniconda3/envs/testenv/bin/python3.8 my_python_file.py
    

    You can do the same thing on windows too but looking up for python and conda python environments is a bit different.

提交回复
热议问题