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我之前已经安装完成了所以本文不再讲述安装流程了。

相关推荐
XM_jhxx2 小时前
±0.03mm的精度怎么保证?翌东塑胶用AI赋能质量管控升级
人工智能
阿正的梦工坊2 小时前
深入理解 PyTorch 中的 unsqueeze 操作
人工智能·pytorch·python
秦歌6664 小时前
DeepAgents框架详解和文件后端
人工智能·langchain
测试员周周5 小时前
【Appium 系列】第06节-页面对象实现 — LoginPage 实战
开发语言·前端·人工智能·python·功能测试·appium·测试用例
霸道流氓气质5 小时前
基于 Milvus Lite 的 Spring AI RAG 向量库实践方案与示例
人工智能·spring·milvus
ar01235 小时前
AR巡检平台:构筑智能巡检新模式的数字化引擎
人工智能·ar
语音之家5 小时前
【预讲会征集】ACL 2026 论文预讲会
人工智能·论文·acl
碳基硅坊5 小时前
电商场景下的商品自动识别与辅助上架
人工智能
熊猫钓鱼>_>5 小时前
强化学习与决策优化:从理论到工程落地的完整指南
人工智能·llm·强化学习·rl·马尔可夫·mdp·决策过程