【VS2019】x64 Native Tools Command Prompt for Vs 2019使用conda命令进入环境

【VS2019】x64 Native Tools Command Prompt for Vs 2019使用conda命令进入环境

  • 安装完VS2019后,打开终端x64 Native Tools Command Prompt for Vs
    2019,直接运行conda会出现'conda' 不是内部或外部命令,也不是可运行的程序



    原因分析:这是因为没有设置anaconda的环境变量
  • 解决方法:如下





其中D:\Program Files\anaconda3是我anaconda的安装路径,根据自己的路径修改,设置完点击确定

  • 回到x64 Native Tools Command Prompt for Vs 2019,再次运行conda activate xxx,出现下述报错

  • 解决方法:
    1.运行 conda init: 在 x64 Native Tools Command Prompt 中运行以下命令:

    conda init cmd.exe
    conda init powershell

  • 2.关闭界面,重新打开,再次输入conda activate xxx,成功进入环境

相关推荐
正经教主10 小时前
【菜鸟飞】Conda安装部署与vscode的结合使用
运维·vscode·python·conda
小逗比r10 小时前
小白学习:提示工程(什么是prompt)
学习·prompt
yuanpan15 小时前
conda创建Python虚拟环境的原理
python·conda
非晓为骁15 小时前
【Agent】Windows 和 CentOS 安装 Conda
windows·centos·conda·agent·owl
flex_university15 小时前
conda 配置新环境时package will be install 和 package will be download 的区别
conda
晨航1 天前
天津大学:《深度解读DeepSeek:部署、使用、安全》
人工智能·安全·ai·prompt·aigc
大囚长2 天前
prompt大师高效提示词解析
人工智能·prompt
大囚长2 天前
prompt样例库推荐
人工智能·prompt
phper83 天前
Python项目在 Cursor 编辑器中 Conda 环境配置问题
python·conda·cursor
何大春3 天前
【对话推荐系统综述】Broadening the View: Demonstration-augmented Prompt Learning for CR
论文阅读·人工智能·深度学习·语言模型·prompt·论文笔记