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

相关推荐
love530love1 天前
命令行创建 UV 环境及本地化实战演示—— 基于《Python 多版本与开发环境治理架构设计》的最佳实践
开发语言·人工智能·windows·python·conda·uv
alex1001 天前
AI Agent开发学习系列 - langchain之LCEL(5):如何创建一个Agent?
人工智能·python·语言模型·langchain·prompt·向量数据库·ai agent
liliangcsdn1 天前
mac测试ollama llamaindex
数据仓库·人工智能·prompt·llama
Ann's Blog2 天前
pycharm配conda环境
ide·pycharm·conda
饭来_3 天前
Python 使用环境下编译 FFmpeg 及 PyAV 源码(英特尔篇)
python·ubuntu·ffmpeg·conda
旧曲重听13 天前
基于Prompt 的DevOps 与终端重塑
人工智能·prompt·devops
AIGC包拥它4 天前
RAG项目实战:LangChain 0.3集成 Milvus 2.5向量数据库,构建大模型智能应用
人工智能·python·langchain·prompt·个人开发·milvus
so.far_away5 天前
The Survey of Few-shot Prompt Learning on Graph
prompt
love530love5 天前
使用 Conda 工具链创建 UV 本地虚拟环境全记录——基于《Python 多版本与开发环境治理架构设计》
开发语言·人工智能·windows·python·机器学习·conda
Xy-unu5 天前
[Semantic Seg][KD]FreeKD: Knowledge Distillation via Semantic Frequency Prompt
prompt