解决cmd输入py文件路径不能执行,使用anaconda prompt 能执行

究其原因,是因为没有配置环境!!!!!!!

第一步:配置环境变量

操作步骤如下:

1、右击此电脑 ---->属性

2、高级系统设置

3、点击环境变量

4、选择 path 进行编辑

说明:

python 复制代码
这是python需要的:	D:\Python\Anaconda
anaconda自带脚本:	D:\Python\Anaconda\Library\mingw-w64
jupyter notebook动态库:	D:\Python\Anaconda\Library\bin
使用C with python 的时候:	D:\Python\Anaconda\Scripts

第二步:打开cmd检验

如图所示,显示配置成功了~~~

相关推荐
m0_603888711 天前
Mitigating Long-Tail Bias via Prompt-Controlled Diffusion Augmentation
ai·prompt·论文速览
手揽回忆怎么睡2 天前
一套 Prompt 组合
prompt
AI Echoes2 天前
LangChain Runnable组件重试与回退机制降低程序错误率
人工智能·python·langchain·prompt·agent
wasp5202 天前
Banana Slides 深度解析:AI Core 架构设计与 Prompt 工程实践
人工智能·prompt·bash
小明_GLC2 天前
大模型幻觉以及如何设计合适的prompt回答用户问题
人工智能·prompt
彷徨的蜗牛2 天前
用 Claude Code 重新定义编程效率:从 Prompt 工程到完整项目实战
prompt·ai 编程·claude code
石去皿3 天前
Depth Viewer: 16-bit 深度图可视化工具
人工智能·chatgpt·prompt
猫头虎3 天前
2026全网最热Claude Skills工具箱,GitHub上最受欢迎的7大Skills开源AI技能库
langchain·开源·prompt·github·aigc·ai编程·agi
伊甸33 天前
基于LangChain4j从0到1搭建自己的的AI智能体并部署上线-1
java·langchain·prompt
汉克老师3 天前
小学生0基础学大语言模型应用(第 19 课《字符串提示词训练(Prompt Thinking)》)
人工智能·深度学习·机器学习·语言模型·prompt·提示词