ubuntu 系统问题记录
2023-09-14 09:07:10 时间
U盘挂载
处理方法如下:
1、Ubuntu 13.10 或以上,安装exfat-fuse:
sudo apt-get install exfat-fuse
2、Ubuntu 13.04 或以下:
sudo apt-add-repository ppa:relan/exfat
sudo apt-get update
sudo apt-get install fuse-exfat
No matching distribution found for py-opencv
(base) wf@ubuntu:~/Downloads$ pip install py-opencv
ERROR: Could not find a version that satisfies the requirement py-opencv (from versions: none)
ERROR: No matching distribution found for py-opencv
(base) wf@ubuntu:~/Downloads$ sudo apt-get update
[sudo] password for wf:
Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Fetched 325 kB in 2s (116 kB/s)
Reading package lists... Done
(base) wf@ubuntu:~/Downloads$ pip install opencv-python
Collecting opencv-python
Downloading opencv_python-4.4.0.46-cp36-cp36m-manylinux2014_x86_64.whl (49.5 MB)
|████████████████████████████████| 49.5 MB 9.7 MB/s
Requirement already satisfied: numpy>=1.13.3 in /home/wf/anaconda3/lib/python3.6/site-packages (from opencv-python) (1.14.3)
Installing collected packages: opencv-python
Successfully installed opencv-python-4.4.0.46
验证:
(base) wf@ubuntu:~/Downloads$ python
Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
torch.load with map_location=‘cpu’
raise RuntimeError('Attempting to deserialize object on a CUDA '
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location='cpu' to map your storages to the CPU.
出错语句:
saved_state_dict = torch.load(args.restore_from)
改成:
# saved_state_dict = torch.load(args.restore_from)
saved_state_dict = torch.load(args.restore_from, map_location='cpu')
相关文章
- [PHP] ubuntu 16.04系统下解决MySQL 5.7版本的root用户重置密码问题
- Linux技巧--Redhat 5系统中的vim编辑器无法正常显示中文解决方案(中文显示为乱码)/Ubuntu 12.04系统gedit中文乱码
- ubuntu安装lrzsz
- Ubuntu升级时被损坏了,修复MBR
- UCloner 是一个针对 Ubuntu Linux 编写的系统备份、恢复、克隆工具
- Ubuntu下LAMP环境搭建
- 在ubuntu上部署Kubernetes管理docker集群示例
- ubuntu中使用virt-manager图形化新建虚拟机
- Ubuntu server 16.04LTS尝鲜之安装
- SDN第二章 Ubuntu系统
- 【ubuntu】linux常用的系统调用函数
- Ubuntu使用之Svn命令小技巧
- Ubuntu下完美切换Python版,即设置系统默认的python版本(亲测有效)
- hadoop伪分布式集群搭建与安装(ubuntu系统)
- 完美解决ubuntu下anaconda3无法启动的问题
- 完美解决VMware虚拟机 Linux系统 Ubuntu 20.04 硬盘/磁盘扩容的问题(超级超级详细)
- 如何在 Ubuntu 和 Debian 上修复“找不到 add-apt-repository 命令”
- ubuntu 16.04.7 LTS 不进系统修改忘记的ROOT密码
- 华为云的ubuntu系统安装 velocyto.r实战
- Ubuntu 18.04 修改 ulimit
- Ubuntu 15.10系统安装后要做的15件事
- Linux之Ubuntu:Ubuntu中常使用的快捷键命令(sudo/dpkg等文件处理相关/系统硬件相关/文件管理/文档编辑/磁盘管理/系统管理/备份压缩)、常用基础案例(图文教程)之详细攻略