Creating new Anaconda environment

huangapple go评论73阅读模式
英文:

Creating new Anaconda environment

问题

I have problems creating a new Anaconda environment. I am new to Python and Anaconda and in another thread (https://stackoverflow.com/questions/59561768/customize-axes-in-matplotlib) I was asked to create an new environment because apparently I was using an old version of some packages (Pandas, Matplotlib and also from Jupyter).

So I inserted the following comments in the Anaconda prompt:

conda update conda
conda create -n myenv python=3.7

Both of them could be executed without an error and a new environment was created in Anaconda. I was further told to use the following comment:

conda activate myenv
source activate myenv

Both of them lead to error messages. The first one leads to the message "CommandNotFoundError: 'activate'" and the second one to "The instruciton source is either spelled wrong or could not be found" (translated from German). The helping person from the other thread told me to ask this in a separate question because, he or she does not know, what the problem might be. Does anyone of you have an idea.

英文:

I have problems creating a new Anaconda environment. I am new to Python and Anaconda and in another thread (https://stackoverflow.com/questions/59561768/customize-axes-in-matplotlib) I was asked to create an new environment because apparently I was using an old version of some packages (Pandas, Matplotlib and also from Jupyter).

So I inserted the following comments in the Anaconda prompt:

conda update conda
conda create -n myenv python=3.7

Both of them could be executed without an error and a new environment was created in Anaconda. I was further told to use the following comment:

conda activate myenv
source activate myenv 

Both of them lead to error messages. The first one leads to the message "CommandNotFoundError: 'activate'" and the second one to "The instruciton source is either spelled wrong or could not be found" (translated from German). The helping person from the other thread told me to ask this in a separate question because, he or she does not know, what the problem might be. Does anyone of you have an idea.

答案1

得分: 3

你的版本已经过时。请将conda更新到最新版本。然后conda activate myenv会起作用。您可以通过在终端中运行以下命令来更新:

conda update conda

英文:

You version is old. Please update your conda to the latest version. Then conda activate myenv would work. You can update by running the following command in your terminal:

conda update conda

huangapple
  • 本文由 发表于 2020年1月3日 22:46:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/59580567.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定