anaconda - 在 conda 环境中找不到命令“python”
问题描述
我在 MS Windows 10 上使用 Ubuntu 20.04 WSL。我从主页(https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh)安装了 anaconda 并尝试创建一个新环境,如下所示图片。
如您所见,我只是创建了一个新环境并切换到该环境,但没有找到 Python 命令。
我做echo $PATH
了并且得到了
/home/my_username/anaconda3/envs/test/bin:/home/my_username/anaconda3/condabin:
已经在 PATH 的开头。
我该如何解决这个问题?谢谢
解决方案
我发现了问题
创建新环境时,我们需要指定Python的版本
conda create -n test python=3.8
推荐阅读
- sql - 将行转置为没有聚合的列(枢轴)
- javascript - 为什么我的 Javascript 函数不能正常工作?
- julia - 如何在 Julia 1.0 上安装 CPLEX?
- node.js - Mongoose 聚合错误:参数必须是聚合管道运算符
- image-processing - 验证集的损失低于训练集
- angular - AngularFireAuth --SwitchMap 函数类型错误
- php - 如何在 Laravel 中写入 .txt 文件?
- python - 查看列表中是否有多个实例
- python - 在 Python 中将列附加到数组时创建的重复条目
- c# - C# 如何解决 HtppWebResponse 返回无法为 [SSL/TLS] 安全通道建立信任关系?