ImportError: No module named 'requests.packages.urllib3‘
I use nginx on centos 7.3
.
There is an error when running certbot --nginx
:
[[email protected] src]# certbot --nginx Traceback (most recent call last): File "/usr/bin/certbot", line 9, in <module> load_entry_point('certbot==0.14.1', 'console_scripts', 'certbot')() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 564, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2662, in load_entry_point return ep.load() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2316, in load return self.resolve() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2322, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/lib/python2.7/site-packages/certbot/main.py", line 14, in <module> from certbot import account File "/usr/lib/python2.7/site-packages/certbot/account.py", line 17, in <module> from acme import messages File "/usr/lib/python2.7/site-packages/acme/messages.py", line 4, in <module> from acme import challenges File "/usr/lib/python2.7/site-packages/acme/challenges.py", line 10, 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'
解決方法:
trypip install --upgrade --force-reinstall 'requests==2.6.0' urllib3
, I've had the same problem https://niuhp.com/other/https-certbot.html
相關推薦
ImportError: No module named 'requests.packages.urllib3‘
I use nginx on centos 7.3.There is an error when running certbot --nginx:[[email protected] src]# certbot --nginx Traceback (most rec
Python ImportError: No module named requests
Requests is not a built in module, so you will have to download it. You can get it here:https://pypi.python.org/pypi/requests Use $ pip install requests i
克隆kvm虛擬機報錯ImportError: No module named 'requests.packages.urllib3'
http VM克隆 color quest TE kvm虛擬 vmdk ase exc 2018-06-21 更新系統造成kvm克隆命令報錯 virt-clone -o centos-7-update-clone -n centos-7-maven-test -f
windows下 python中報錯ImportError: No module named 'requests'
net fontsize 技術 -m font request term tle -- 原因沒有安裝requests模塊, 可以切換到python的安裝目錄找到 script文件夾 example: 進入cmd窗口切換到上面的目錄直接運營下面兩個命令中的一個 1.
ImportError: No module named PIL
func mod form -i ref rar ssi www proc Pillow is a replacement for PIL, the Python Image Library, which provides image processing function
python打包exe文件-ImportError: No module named 'queue'
data cati ref copy star lib 程序 light boa 我之前遇到的一個錯誤就是 [html] view plain copy File "site-packages\urllib3\packages\six.py", lin
ImportError:No module named google.protobuf.internal
google logs protobuf clas font times pan cond family 當在anaconda中import caffe 時提示錯誤: 1 ImportError:No module named google.protobuf.intern
ImportError: No module named etree.ElementTree問題解決方法
再次 手工 沒有 導致 eba pan 刪除 error: ttr 學習python操作xml文檔過程中碰到的ImportError: No module named etree.ElementTree問題,問題現象比較奇怪,做個記錄。 前提條件 1、創建了一個xm
Python 之 ImportError: No module named ***
() data 表示 fix word-wrap 什麽 -c rac xxxxxx 假設想使用非當前模塊中的代碼,須要使用Import。這個大家都知道。 假設你要使用的模塊(py文件)和當前模塊在同一文件夾。僅僅要import對應的文件名稱就好,比方在a
coures包下載和安裝 可解決報錯ImportError: No module named '_curses'
csdn targe linux .net 控制字符 找到 lan tro detail http://blog.csdn.net/liyaoqing/article/details/54949253 coures curses 庫 ( ncurses )提供了控制
ImportError: No module named argparse
再次 成功 named .cn span 安裝 com png parse 問題描述: 怎麽解決呢: 網上看了好多方法,但是本屌絲表示看不懂啊,沒理解人家的博客的博大精深,好吧我們回到正題!! 先切換到root用戶下安裝這個東西 yum easy_install a
ImportError: No module named 'serial'
python2 serial com .com sudo -m name 版本 col /******************************************************************************** *
ImportError: No module named urllib.parse
docker compose安裝docker編排工具compose時:系統環境:centos7 ,python是自帶的2.7[root@linux-node01 ~]# wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarc
ImportError: No module named MySQLdb問題的解決
port win 執行 sql 。。 https 查看 med 分享 今天在windows上擼python代碼,遇到ImportError: No module named MySQLdb的問題,遂趕緊pip install mysql-python,結果還是不行,查看安裝
pycharm中報錯:ImportError: No module named 'skimage'
提示 div uil ++ inf als 直接 技術 tools pycharm中直接setting是沒辦法成功的,會提示is requied C++ bool.....先進入那個頁面安裝好需要的tools,這個安裝比較慢:http://landinghub.visual
全網最詳細的跑python2.7時出現from mysql import connector ImportError: No module named mysql的問題解決辦法(圖文詳解)
領域 conda load 機器學習 同時 精華 center mod con 不多說,直接上幹貨! C:\Users\lenovo>pip install mysql-connector-python-rf==2.1.3 Col
ImportError: No module named platform
module wrap ace 改變 erro 執行 1.5 不可 init centos7+tensorflow1.5 >> >>> import tensorflow as tfTraceback (most recent call la
ImportError: No module named prettytable的處理方法
python1、報錯現象: 執行某個python腳本的時候,出現下圖的報錯 2、解決方法 # wget https://pypi.python.org/packages/source/P/PrettyTable/prettytable-0.7.2.tar.gz --2018-03-24 23:04:03--
import yum ImportError: No module named yum
ansible報錯:FAILED! => {"changed": false, "module_stderr": "Shared connection to 192.168.10.10 closed.\r\n", "module_st
Flask報錯筆記:ImportError: No module named ‘MySQLdb‘
flask web 環境描述:Windows10 自己部署一個flask項目 #/usr/bin/python env #coding:utf8 from flask_script import Manager from flask_bootstrap import Bootstrap from fl