anaconda、cuda、tensorflow、pycharm环境安装

anaconda、cuda、tensorflow、pycharm环境安装

anaconda安装

anaconda官方下载地址

本文使用的是基于python3.9的anaconda

接下来跟着步骤安装:




检验conda是否成功安装

安装CUDA和cuDNN

提醒,CUDA和cuDNN两者必须版本对应,否者将会出错
查看电脑显卡型号行否支持安装CUDA
CUDA和cuDNN版本对应网站
1 查看显卡型号

我的版本选择如下

CUDA下载地址

开始安装CUDA






开始安装cuDNN

cuDNN下载地址


环境变量的配置

我的电脑->高级系统设置

检验CUDA是否安装完成

安装Tensorflow

在c盘中创建一个Tensorflow文件夹

依次输入以下命令:

报错了如下图:

解决方法:

安装成功:

验证

在python环境中输入

python 复制代码
import tensorflow as tf

但是报错

python 复制代码
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. daal4py 2021.6.0 requires daal==2021.4.0, which is not installed. pylint 2.14.5 requires typing-extensions>=3.10.0; python_version < "3.10", but you have typing-extensions 3.7.4.3 which is incompatible. conda-repo-cli 1.0.20 requires clyent==1.2.1, but you have clyent 1.2.2 which is incompatible. conda-repo-cli 1.0.20 requires nbformat==5.4.0, but you have nbformat 5.5.0 which is incompatible. bokeh 2.4.3 requires typing-extensions>=3.10.0, but you have typing-extensions 3.7.4.3 which is incompatible. black 22.6.0 requires typing-extensions>=3.10.0.0; python_version < "3.10", but you have typing-extensions 3.7.4.3 which is incompatible. astroid 2.11.7 requires typing-extensions>=3.10; python_version < "3.10", but you have typing-extensions 3.7.4.3 which is incompatible.

解决方法

python 复制代码
pip uninstall protobuf
pip install protobuf==3.20.0

问题得到解决

终于安装成功了。

pycharm的安装

由于pycharm我之前已经安装完成了所以本文不再讲述安装流程了。

相关推荐
lld9510276 分钟前
我做了一个 AI Agent Skill 云:用 MCP 在 Claude Code、Codex、OpenCode 之间同步技能
数据库·人工智能
茶马古道的搬运工8 分钟前
AI 深度技能之-解读Hermes Agent(六)- Kanban + Markdown 混合编排
人工智能
2zcode11 分钟前
项目文档:基于MATLAB图像处理的乳腺癌辅助检测系统设计与实现
图像处理·人工智能·matlab
随性而行36016 分钟前
微信API接口与AI自动化:开发者的实现思路
运维·服务器·开发语言·人工智能·微信·自动化
东风破_18 分钟前
Mini Cursor 为什么离不开 path 和 fs?Node.js 路径处理与异步文件读写
人工智能
jianwuhuang8228 分钟前
deepseek 生成的图表怎么导出?AI 导出鸭多方案详解
人工智能·ai·chatgpt·ai导出鸭
茶马古道的搬运工28 分钟前
AI 深度技能之-解读Hermes Agent(五)- 并非只有 Kanban
人工智能
我爱吃土豆128 分钟前
AI Agent 的工作原理:从大模型问答到自主执行任务
人工智能·搜索引擎·百度·agent
神奇小汤圆33 分钟前
从BRD到知识库-两个Skill把需求变成AI能查的知识
人工智能
Lucky_luckyZzz35 分钟前
销售会话分析与智能工牌实测红榜:灵听工牌如何成为B2B销售效率提升的选型标杆?
大数据·人工智能