英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论