我似乎无法升级Python date util软件包。
(D:\Users\kiraa\AppData\Local\Microsoft\AppV\Client\Integration\95FD7873-726E-40E9-B477-CC4010411846\Root) D:\Users\kiraa\AppData\Local\Temp\Downloads\python-o365-master\python-o36
5-master>pip install python-dateutil
Requirement already satisfied: python-dateutil in c:\programdata\app-v\95fd7873-726e-40e9-b477-cc4010411846\9727bf3a-f7f8-45a4-ad38-2f35b6e0fb2a\root\lib\site-packages
Requirement already satisfied: six>=1.5 in c:\programdata\app-v\95fd7873-726e-40e9-b477-cc4010411846\9727bf3a-f7f8-45a4-ad38-2f35b6e0fb2a\root\lib\site-packages (from python-dateut
il)
但是,当我尝试安装O365时,由于相同的错误而失败。
(D:\Users\kiraa\AppData\Local\Microsoft\AppV\Client\Integration\95FD7873-726E-40E9-B477-CC4010411846\Root) D:\Users\kiraa\AppData\Local\Temp\Downloads\python-o365-master\python-o36
5-master>pip install O365
Requirement already satisfied: O365 in c:\programdata\app-v\95fd7873-726e-40e9-b477-cc4010411846\9727bf3a-f7f8-45a4-ad38-2f35b6e0fb2a\root\lib\site-packages\o365-2.0.5-py3.6.egg
Requirement already satisfied: requests>=2.18.0 in c:\programdata\app-v\95fd7873-726e-40e9-b477-cc4010411846\9727bf3a-f7f8-45a4-ad38-2f35b6e0fb2a\root\lib\site-packages (from O365)
Requirement already satisfied: requests_oauthlib>=1.2.0 in c:\programdata\app-v\95fd7873-726e-40e9-b477-cc4010411846\9727bf3a-f7f8-45a4-ad38-2f35b6e0fb2a\root\lib\site-packages\req
uests_oauthlib-1.2.0-py3.6.egg (from O365)
Collecting python-dateutil>=2.7 (from O365)
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object
at 0x0000000005B02208>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/python-dateutil/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object
at 0x0000000005B02AC8>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/python-dateutil/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object
at 0x0000000005B02E80>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/python-dateutil/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object
at 0x0000000005B020F0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/python-dateutil/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object
at 0x0000000005B029E8>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/python-dateutil/
Could not find a version that satisfies the requirement python-dateutil>=2.7 (from O365) (from versions: )
No matching distribution found for python-dateutil>=2.7 (from O365)
所以我正在寻找一种升级方式
(D:\Users\kiraa\AppData\Local\Microsoft\AppV\Client\Integration\95FD7873-726E-40E9-B477-CC4010411846\Root) D:\Users\kiraa\AppData\Local\Temp\Downloads\python-dateutil-2.8.1\python-
dateutil-2.8.1>pip install python-dateutil --upgrade
但是,它似乎并不能很好地工作。尝试安装和重新安装dateutil软件包。没用请帮忙 !
在执行use_scm_version'warnings.warn(msg)
时,我是否应基于错误指定要安装的版本?(D:\Users\kiraa\AppData\Local\Microsoft\AppV\Client\Integration\95FD7873-726E-40E9-B477-CC4010411846\Root) D:\Users\kiraa\AppData\Local\Temp\Downloads\python-dateutil-2.8.1\python-
dateutil-2.8.1>python setup.py install
C:\ProgramData\App-V\95FD7873-726E-40E9-B477-CC4010411846\9727BF3A-F7F8-45A4-AD38-2F35B6E0FB2A\Root\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'use_scm_ve
rsion'
warnings.warn(msg)
egg\dateutilcopying build\lib\dateutil\__init__.py -> build\bdist.win-amd64\egg\dateutilbyte-compiling build\bdist.win-amd64\egg\dateutil\easter.py to easter.cpython-36.pycbyte-compiling build\bdist.win-amd64\egg\dateutil\parser\isoparser.py to isoparser.cpython-36.pycbyte-compiling build\bdist.win-amd64\egg\dateutil
我担心,因为它显示了已安装的版本0.0.0
Using c:\programdata\app-v\95fd7873-726e-40e9-b477-cc4010411846\9727bf3a-f7f8-45a4-ad38-2f35b6e0fb2a\root\lib\site-packages
Finished processing dependencies for python-dateutil==0.0.0
hon