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

相关推荐
学海无涯,行者无疆2 分钟前
Tauri框架实战——鼠标左键单击托盘图标不显示菜单
人工智能·ai编程·tauri·trae·氛围编程·托盘功能·托盘点击
liliangcsdn3 分钟前
LLM训练中batchsize与过拟合和泛化的关系
人工智能·算法·机器学习
ccLianLian3 分钟前
Segment Anything Model
人工智能·深度学习·计算机视觉
week_泽4 分钟前
第10课:从零构建生产级AI Agent服务技术方案 - 学习笔记_10
人工智能·笔记·学习·ai agent
lynnlovemin4 分钟前
AI时代信息安全:从挑战突围到智能防御体系构建
人工智能·信息安全
西柚小萌新4 分钟前
【计算机视觉CV:标注工具】--labelimg+labelme
人工智能·计算机视觉
躺平的赶海人5 分钟前
PyTorch 安装指南:快速开启深度学习之旅
人工智能·pytorch·深度学习
IT_陈寒7 分钟前
Vue3性能优化实战:5个被低估的API让我减少了40%的代码量
前端·人工智能·后端
Hcoco_me10 分钟前
大模型面试题64:介绍下PPO的训练流程
人工智能·深度学习·机器学习·chatgpt·机器人
高洁0113 分钟前
AI智能体搭建(2)
人工智能·深度学习·算法·机器学习·知识图谱