在Linux Mint和Spyder上使用不同的Anaconda环境

2024-05-15 01:12:30 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图通过Anaconda 4.9.2在多个环境中使用和安装软件包(我使用Linux Mint 20Spyder 4.1.5)。 我创建了一个名为phdenv的环境,在我看来,我能够安装Python 3.7,但是当试图通过命令conda activate phdenv激活环境时,出现的错误如下:

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

     $ init init <SHELL_NAME>

Currently supported shells are:
   - bash
   - fish
   - tcsh
   - xonsh
   - zsh
   - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.



Note: you may need to restart the kernel to use updated packages.

我做错了什么


Tags: andtoyour环境inituseanacondashell

热门问题