python38配置深度学习教程

首先使用的是 python38和pycharm 社区版

下载地址:

https://download.csdn.net/download/mqdlff_python/88721981

安装教程:

如何在python中导入python:

首先安装python的时候要记住安装路径

安装python的流程请看:Python全网超详细安装教程(新手) - 知乎 这个仅供参考其实很简单安装 

如何在pycahrm中导入python:

 

 找到你的python的安装文件夹下:找到这个Scripts文件夹

 在这个目录路径栏目直接输入 cmd 然后按enter键:

 在这个目录下配置 库保证不会配错地方:

下面是常见的深度学习库必须按照下面配 如果版本有问题 会无法运行  

其余的没有按照下面的模板配 

python 38 的情况 
pip install tensorflow==2.6.2 Keras==2.6.0 -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
pip install tensorflow==2.6.2 Keras==2.6.0 -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
pip install protobuf==3.20.1 -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
pip install scikit-learn -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
pip install torch==1.7.0+cpu torchvision==0.8.1+cpu torchaudio===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html 
pip install transformers==4.13.0 -i https://pypi.tuna.tsinghua.edu.cn/simple 
pip install --upgrade nni --ignore-installed -i https://pypi.tuna.tsinghua.edu.cn/simple 
pip install gensim==4.2.0 -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
pip install numpy==1.20.3 -i https://pypi.tuna.tsinghua.edu.cn/simple

配完了就没问题了 

  • 8
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值