论文复现(一)

CSDN话题挑战赛第2期
参赛话题:学习笔记


问题1:pip install HDLTex时出现“ERROR: Could not find a version that satisfies the requirement HDLTex (from versions: none)
ERROR: No matching distribution found for HDLTex” 的错误

搜索是:镜像错误

修改成: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 包名

 修改后:

 参考:(2条消息) ERROR: Could not find a version that satisfies the requirement_qq591840685的博客-CSDN博客

问题二:查看pytorch版本 

 

!!切记要匹配系统的版本

查看系统的版本:论文复现(一)_第1张图片

 卸载pytorch

pip uninstall torch

 重新安装pytorch

论文复现(一)_第2张图片

# CUDA 10.2
conda install pytorch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0 cudatoolkit=10.2 -c pytorch
# CUDA 11.3
conda install pytorch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0 cudatoolkit=11.3 -c pytorch
# CUDA 11.6
conda install pytorch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0 cudatoolkit=11.6 -c pytorch -c conda-forge
# CPU Only
conda install pytorch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0 cpuonly -c pytorch

安装transformers报错 

 论文复现(一)_第3张图片

 需要论文复现(一)_第4张图片

 安装torch 

 安装

论文复现(一)_第5张图片

报错: torchvision 0.11.3 requires torch==1.10.2, but you have torch 1.12.0 which is incompatible.

然后卸载torchvision 0.11.3

pip uninstall torchvision==0.11.3

 然后下载对应版本 (官方给的)

论文复现(一)_第6张图片

 pip install torchvision==0.13.0

发现已经存在了,但是还是要执行一遍防止没有

论文复现(一)_第7张图片

下载 torch-sparse == 0.6.12

报错

论文复现(一)_第8张图片

 论文复现(一)_第9张图片

 

 查看版本论文复现(一)_第10张图片

确实不对 , 啊  再来一遍。

重新下载torch,刚刚下载的好像还是cuda102的

执行以下代码:

conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch

执行的时候要把-c pytorch去掉 

安装

 

你可能感兴趣的:(试错总结,nlp学习之路,python,windows,html)