Conda activate not working?

前端 未结 16 1537
失恋的感觉
失恋的感觉 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:55

    This solution is for those users who do not want to set PATH.

    Sometimes setting PATH may not be desired. In my case, I had Anaconda installed and another software with a Python installation required for accessing the API, and setting PATH was creating conflicts which were difficult to resolve.

    Under the Anaconda directory (in this case Anaconda3) there is a subdirectory called envs where all the environments are stored. When using conda activate some-environment replace some-environment with the actual directory location of the environment.

    In my case the command is as follows.

    conda activate C:\ProgramData\Anaconda3\envs\some-environment

提交回复
热议问题