CUDA11.2 安装pytorch报错:ERROR: Could not install packages due to an OSError: [Errno 2] No such file or
ubuntu服务器CUDA版本为11.2,查询官网发现pytorch没有对应版本,直接安装CUDA11.3版本的torch:
pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
报错如下:
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/root/anaconda3/envs/mmdetection/lib/python3.7/site-packages/torch/_C.cpython-37m-x86_64-linux-gnu.so'
此报错与pytorch版本和cuda版本不对应无关,是权限不足引发的报错,解决方法为在pip install后面加上--user:
pip3 install --user torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
torch安装成功,代码能够成功运行,没有与CUDA版本不兼容的问题!
CUDA11.2 安装pytorch报错:ERROR: Could not install packages due to an OSError: [Errno 2] No such file or相关推荐
- pip报错 ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory
使用pip安装某些包时,会出现以下报错 ERROR: Could not install packages due to an OSError: [Errno 2] No such file or d ...
- ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory:错误解决方法
在windows10上用pip命令pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https: ...
- PyCharm集成Anaconda3环境下安装 腾讯优图报错 ERROR: Could not install packages due to an EnvironmentError
一.报错截图如下: ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or di ...
- pyqt5 安装pyqt ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied:解决方案
pyqt5 安装pyqt ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied:解决方案 ...
- pip安装ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device解决方案
大家好,我是爱编程的喵喵.双985硕士毕业,现担任全栈工程师一职,热衷于将数据思维应用到工作与生活中.从事机器学习以及相关的前后端开发工作.曾在阿里云.科大讯飞.CCF等比赛获得多次Top名次.现 ...
- ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied问题解决
Windows Anaconda python3.6 安装依赖包发生错误如下 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r re ...
- ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device
场景:pycharm下安装模块,报cache错误 使用的指令: pip install -r .\requirements.txt 在我们安装模块的时候,出现下面错误: ERROR: Could no ...
- 解决方法:ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directo
在使用windows系统用pip命令安装ipyparallel时,出现了这种错误: ERROR: Could not install packages due to an EnvironmentErr ...
- ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: ‘
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: ' ...
最新文章
- JS 获取控件的绝对位置
- Java随机数控制范围
- java数组拼字符串_java数组、字符串拼接
- 使用powershell批量导入AD用户
- 鸟哥私房菜(基础篇第三版)笔记
- LeetCode 535. TinyURL 的加密与解密(哈希)
- LeetCode 389. Find the Difference
- 『ExtJS』表单(一)常用表单控件及内置验证
- Oracle SGA优化
- Swift 类的使用class
- 面试题10.3-变态跳台阶
- 八爪鱼-自定义模式采集数据
- python拆分PDF
- Docker实用指令整理
- 计算机 分类号,中图法分类号(计算机,自动化)(CLC number (computer, automation)).doc...
- 【AGC031E】Snuke the Phantom Thief(费用流)
- 初识CornerNet
- 用python wxpy管理微信公众号,并利用微信获取自己的开源数据。
- 文字图片行内垂直居中对齐方法
- 渗透测试工程师的职业发展