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

相关推荐
落沐萧萧4 分钟前
本地多语言 AI 字幕组:Whisper 实战教程
人工智能·whisper
合方圆~小文5 分钟前
架空线路图像视频监测装置
c语言·c++·人工智能·嵌入式硬件·硬件工程·模拟退火算法
小草cys5 分钟前
使用 Coze 工作流一键生成抖音书单视频:全流程拆解与技术实现
人工智能·音视频·工作流·coze
深度之眼35 分钟前
贝叶斯深度学习!华科大《Nat. Commun.》发表BNN重大突破!
人工智能·深度学习·神经网络
IT_陈寒36 分钟前
一键生成活动页面的智能体开发实践:从策划到分发的全自动化解决方案
人工智能·程序员
MYH51637 分钟前
深度学习聊天机器人 需要考虑
人工智能·深度学习·机器人
starryrbs1 小时前
AI视频生成API:一站式视频生成解决方案
人工智能
AI大模型技术社1 小时前
线性代数:AI大模型开发的数学基石(附核心代码与图解)
人工智能
zhangts201 小时前
(二)TensorRT-LLM | 模型导出(v0.20.0rc3)
人工智能·语言模型
视觉语言导航1 小时前
中南大学无人机智能体的全面评估!BEDI:用于评估无人机上具身智能体的综合性基准测试
人工智能·深度学习·无人机·具身智能