【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,成功进入环境

相关推荐
ydl112818 小时前
安装Anaconda
人工智能·conda
郁大锤1 天前
conda虚拟环境占用空间太多,如何清理?
linux·conda
be_humble1 天前
conda 环境配置
conda
lzjava20243 天前
Spring AI加DeepSeek实现一个Prompt聊天机器人
人工智能·spring·prompt
IT空门:门主3 天前
ai prompt(提示词)的用法
prompt·学习ai
勇者无畏4043 天前
基于 Spring AI Alibaba 搭建 Text-To-SQL 智能系统(前置介绍)
java·后端·spring·prompt·embedding
星期天要睡觉4 天前
提示词(Prompt)——链式思维提示词(Chain-of-Thought Prompting)在大模型中的调用(以 Qwen 模型为例)
开发语言·人工智能·python·语言模型·prompt
课堂随想4 天前
vscode关闭自动激活conda环境
vscode·conda
人工智能训练4 天前
在 Ubuntu 系统中利用 conda 创建虚拟环境安装 sglang 大模型引擎的完整步骤、版本查看方法、启动指令及验证方式
linux·运维·服务器·人工智能·ubuntu·conda·sglang
Will_Ye5 天前
在Ubuntu中使用Docker打包程序(Conda, pip)
ubuntu·docker·conda