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相关推荐

  1. 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 ...

  2. 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: ...

  3. 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 ...

  4. 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:解决方案 ...

  5. pip安装ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device解决方案

      大家好,我是爱编程的喵喵.双985硕士毕业,现担任全栈工程师一职,热衷于将数据思维应用到工作与生活中.从事机器学习以及相关的前后端开发工作.曾在阿里云.科大讯飞.CCF等比赛获得多次Top名次.现 ...

  6. 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 ...

  7. 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 ...

  8. 解决方法: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 ...

  9. 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: ' ...

最新文章

  1. JS 获取控件的绝对位置
  2. Java随机数控制范围
  3. java数组拼字符串_java数组、字符串拼接
  4. 使用powershell批量导入AD用户
  5. 鸟哥私房菜(基础篇第三版)笔记
  6. LeetCode 535. TinyURL 的加密与解密(哈希)
  7. LeetCode 389. Find the Difference
  8. 『ExtJS』表单(一)常用表单控件及内置验证
  9. Oracle SGA优化
  10. Swift 类的使用class
  11. 面试题10.3-变态跳台阶
  12. 八爪鱼-自定义模式采集数据
  13. python拆分PDF
  14. Docker实用指令整理
  15. 计算机 分类号,中图法分类号(计算机,自动化)(CLC number (computer, automation)).doc...
  16. 【AGC031E】Snuke the Phantom Thief(费用流)
  17. 初识CornerNet
  18. 用python wxpy管理微信公众号,并利用微信获取自己的开源数据。
  19. 文字图片行内垂直居中对齐方法
  20. 渗透测试工程师的职业发展

热门文章

  1. 决不应该调用E x i t T h r e a d。应该使用Visual C++运行期库函数_ e n d t h r e a d e x
  2. wps冻结窗口:使某行固定不动,可以上下拖动其他行
  3. threejs灯光light参数
  4. python读取文件的几种方式
  5. XYC Q8开源掌机刷第三方系统教程
  6. 系统指标积累 TBD
  7. 写出兼容各大邮箱及适配移动设备的邮件模板
  8. 怎么恢复本地磁盘里的数据?电脑本地磁盘数据恢复7种方案
  9. linux查看tuxedo版本的命令,tuxedo linux安装
  10. 基于UML的工作流管理系统分析