平时跑的好好的python脚本,今天一运行出现错误,把解决方法记录,如下: 错误内容: Traceback (most recent call last): File "/home/teld/mysqlDateBackup.py", line 12, in <module> from xxxx import xxxxx File "/usr/lib/python2.7/site-packages/azure/storage/blob/init.py", line 39, in <module> from .blockblobservice import BlockBlobService File "/usr/lib/python2.7/site-packages/azure/storage/blob/blockblobservice.py", line 64, in <module> from .baseblobservice import BaseBlobService File "/usr/lib/python2.7/site-packages/azure/storage/blob/baseblobservice.py", line 95, in <module> from ..storageclient import StorageClient File "/usr/lib/python2.7/site-packages/azure/storage/storageclient.py", line 18, 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 --upgrade --force-reinstall 'requests==2.6.0' urllib3
python requests.pac
2020-01-03 15:22:41
浏览数 (1)