关于在anaconda+python3.8上安装tensorflow遇到问题的全记录/经验分享
(***环境Win 10+anaconda 4.8.3 python3.8)前言如果你的python版本是3.8,下载tensorflow备受折磨,请飞快点进来。一.‘conda’ 不是内部或外部命令问题:conda’ 不是内部或外部命令,也不是可运行的程序 或批处理文件原因:环境变量未设置解决方案第一步.找到anaconda的安装路径:比如我把它安装到了F盘,我的F盘里就有:F:\anacond
(***环境Win 10+anaconda 4.8.3 python3.8)
前言
如果你的python版本是3.8,下载tensorflow备受折磨,请飞快点进来。
一.‘conda’ 不是内部或外部命令
问题:conda’ 不是内部或外部命令,也不是可运行的程序 或批处理文件
原因:环境变量未设置
解决方案
第一步.找到anaconda的安装路径:
比如我把它安装到了F盘,我的F盘里就有:
F:\anaconda3
F:\anaconda3\Scripts
需要把以上两个路径添加到系统的环境变量里
***右键我的电脑–属性–高级系统设置–高级–环境变量
***找到系统变量path,添加上述两个路径
(如果要用jupyter notebook,建议把F:\anaconda3\Library\bin也加上)
之后重启检查就ok了
二、CondaHTTPError HTTP 000 CONNECTION FAILED for url
问题:创建新环境/安装库出现CondaHTTPError HTTP 000 CONNECTION FAILED for url提示
还提示我什么找不到current_repodata.json把我看傻了
提示:CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json
解决方案
搜了网上好多类似提示的,问题可以通过修改
C:\Users\XXX 文件中的.condarc文件解决
去掉文件中channels:这行下面的
的 " - default "
如果还显示错误提示的话,可以把channels:这行下面的网址改一下:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
我现在的.condar文件是这样的(以上网址我也是搜了很多,不知道具体是哪一个起了作用,仅供参考):
三、Solving environment: failed
问题:Solving environment: failed with initial frozen solve
附上问题提示:
Unsatisfiable Error: The following specifications were found to be incompatible with the existing python installation in your environment:
Specifications:
- tensorflow -> python[version=‘3.5.|3.6.’]
Your python: python=3.8
原因
总之就是python3.8版本对于安装tensorflow来说过高了
解决方案
找到了一个绝顶好用的回答:
直接在anaconda prompt中输入这行
pip --default-timeout=100 install tensorflow -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
来自这个原博:
https://blog.csdn.net/qq_47795171/article/details/108673510
我直接甩飞鼠标疯狂点赞

GitCode 天启AI是一款由 GitCode 团队打造的智能助手,基于先进的LLM(大语言模型)与多智能体 Agent 技术构建,致力于为用户提供高效、智能、多模态的创作与开发支持。它不仅支持自然语言对话,还具备处理文件、生成 PPT、撰写分析报告、开发 Web 应用等多项能力,真正做到“一句话,让 Al帮你完成复杂任务”。
更多推荐
所有评论(0)