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

相关推荐
XiongLiding6 分钟前
我的第一个MCP,以及开发过程中的经验感悟
人工智能
三花AI20 分钟前
阿里 20B 参数 Qwen-Image-Edit 全能图像编辑模型
人工智能
EthanLifeGreat32 分钟前
ParallelWaveGAN-KaldiFree:纯Pytorch的PWG
人工智能·pytorch·深度学习·音频·语音识别
盏灯40 分钟前
据说,80%的人都搞不懂MCP底层?
人工智能·aigc·mcp
机器之心40 分钟前
机器人也会「摸鱼」了?宇树G1赛后葛优瘫刷美女视频,网友:比人还懂享受生活
人工智能·openai
胡耀超41 分钟前
从哲学(业务)视角看待数据挖掘:从认知到实践的螺旋上升
人工智能·python·数据挖掘·大模型·特征工程·crisp-dm螺旋认知·批判性思维
新智元44 分钟前
Meta没做的,英伟达做了!全新架构吞吐量狂飙6倍,20万亿Token训练
人工智能·openai
新智元44 分钟前
Hinton 预言成真!AI 接管美国一半白领,牛津哈佛扎堆转行做技工
人工智能·openai
aneasystone本尊1 小时前
学习 Coze Studio 的知识库入库逻辑
人工智能
然我1 小时前
从 “只会聊天” 到 “能办实事”:OpenAI Function Call 彻底重构 AI 交互逻辑(附完整接入指南)
前端·javascript·人工智能