CentOS Anaconda3 虚拟环境激活后无命令行提示符解决方法
可能是因为虚拟环境中没有安装 bash 或 zsh 等命令行提示符的 shell。您可以尝试以下步骤解决这个问题:
-
进入虚拟环境:'source activate your_env_name'
-
安装 bash 或 zsh 等 shell:'conda install -c anaconda bash' 或 'conda install -c anaconda zsh'
-
激活新安装的 shell:'bash' 或 'zsh'
此时应该能看到已经有了命令行提示符。如果还有问题,请尝试重新创建虚拟环境或查看 Anaconda 的文档以获取更多帮助。
原文地址: https://www.cveoy.top/t/topic/lMda 著作权归作者所有。请勿转载和采集!