克隆kvm虚拟机报错ImportError: No module named 'requests.packages.urllib3'



2018-06-21



更新系统造成kvm克隆命令报错

virt-clone -o centos-7-update-clone  -n centos-7-maven-test -f /var/lib/vmdk/jingxiang/maven-test.qcow2

报错信息

Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-clone", line 27, in <module>
    import virtinst.cli as cli
  File "/usr/share/virt-manager/virtinst/__init__.py", line 89, in <module>
    from virtinst.distroinstaller import DistroInstaller
  File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 23, in <module>
    from . import urlfetcher
  File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 34, in <module>
    import requests
  File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 58, in <module>
    from . import utils
  File "/usr/lib/python2.7/site-packages/requests/utils.py", line 32, in <module>
    from .exceptions import InvalidURL
  File "/usr/lib/python2.7/site-packages/requests/exceptions.py", line 10, in <module>
    from .packages.urllib3.exceptions import HTTPError as BaseHTTPError
  File "/usr/lib/python2.7/site-packages/requests/packages/__init__.py", line 95, in load_module
    raise ImportError("No module named ‘%s‘" % (name,))
ImportError: No module named ‘requests.packages.urllib3‘

解决方案

pip install docker-compose --ignore-installed requests

亲测有效

克隆kvm虚拟机报错ImportError: No module named 'requests.packages.urllib3'

原文地址:https://www.cnblogs.com/fqxy/p/9207062.html

时间: 2024-10-29 09:35:48

克隆kvm虚拟机报错ImportError: No module named 'requests.packages.urllib3'的相关文章

ubuntu上跑python连接pg,报错 ImportError: No module named psycopg2

ubuntu上跑python连接pg,报错  ImportError: No module named psycopg2 [email protected]:~# python /home/zxw/PGWriterTest_m.py Traceback (most recent call last): File "/home/zxw/PGWriterTest_m.py", line 4, in <module> import psycopg2 ImportError: No

Django 运行报错 ImportError: No module named &#39;PIL&#39;

importError: No module named pil WIN7 64位系统安装 Python PIL 首先通过easy_install安装 说找不到pil模块. 第二通过去官网找:http://www.pythonware.com/products/pil/ 找了几个版本安装版的没有64位的,源码包的下载无法安装说要安装vs2008我也安装了还是不行.最后在这个地址找到:http://www.lfd.uci.edu/~gohlke/pythonlibs/ Pillow is a re

coures包下载和安装 可解决报错ImportError: No module named &#39;_curses&#39;

http://blog.csdn.net/liyaoqing/article/details/54949253 coures curses 库 ( ncurses )提供了控制字符屏幕的独立于终端的方法.curses 是大多数类似于 UNIX 的系统(包括Linux)的标准部分,而且它已经移植到 Windows 和其它系统. 安装包   http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses 安装   pip install whl文件名 可以应对py

windows下 python中报错ImportError: No module named &#39;requests&#39;

原因没有安装requests模块, 可以切换到python的安装目录找到 script文件夹 example: 进入cmd窗口切换到上面的目录直接运营下面两个命令中的一个 1. > Path\pip install requests 2. > Path\easy_install.exe requests 详细参考:https://stackoverflow.com/questions/17309288/importerror-no-module-named-requests ---------

Centos 7 python 编译报错 ImportError: No module named six 解决办法

本地编译Open vSwitch时报错 Traceback (most recent call last):   File "./ovsdb/ovsdb-idlc.in", line 8, in <module>     import ovs.json   File "/root/rpmbuild/BUILD/openvswitch-2.6.0/python/ovs/json.py", line 21, in <module>     imp

scrapy爬虫实例w3school报错ImportError: No module named w3school.items

爬虫例程就不整个叙述了,百度一下超多的,贴上一篇经过验证可以爬取的例程的网址 http://blog.csdn.net/u012150179/article/details/32911511 下面是我在运行时中出现的错误 错误ImportError: No module named w3school.items 相应的错误的代码是 from w3school.items import W3SchoolItem 好坑啊,刚开始就觉得这个错误简直莫名其妙,在网上也看了很多都没解决,后来... 将it

安装ipython报错&quot;ImportError: No module named shutil_get_terminal_size&quot;

操作系统:Ubuntu16.04 安装的python版本:Python 2.7.12 安装的ipython版本:IPython 5.1.0 报错信息: 解决办法: 1.报错信息显示在/usr/local/lib/python2.7/dist-packages/IPython/utils/terminal.py的 from backports.shutil_get_terminal_size import get_terminal_size as _get_terminal_size 出错: 2.

安装kvm虚拟机报错,解决办法

创建虚拟磁盘文件 [[email protected] ~]# qemu-img create -f qcow2 -o preallocation=metadata dev_beyond.img 8G Formatting 'dev_beyond.img', fmt=qcow2 size=8589934592 encryption=off cluster_size=65536 preallocation='metadata' 参数说明: -o preallocation=metadata 预分配

python3 引入selenium库报错ModuleNotFoundError: No module named &#39;selenium&#39;

解决方法: pip install -U selenium python3 引入selenium库报错ModuleNotFoundError: No module named 'selenium' 原文地址:https://www.cnblogs.com/zouke1220/p/9326434.html