安装其他依赖项没有问题,但是 djangorestframework_simplejwt 给我以下错误。
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))': /packages/3d/d7/92c717da4e3474fef8a5415391170eba60be16a4e531c9027c38b2c329c8/djangorestframework_simplejwt-3.2.3-py2.py3-none-any.whl
Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/3d/d7/92c717da4e3474fef8a5415391170eba60be16a4e531c9027c38b2c329c8/djangorestframework_simplejwt-3.2.3-py2.py3-none-any.whl (Caused by ProtocolError('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer')))
编辑
我的virtualenv似乎有问题。当我deactivate
时,点子效果很好。
WORKAROUND
所以我暂时找到了解决方法。我deactivated
我的环境,然后依次pip install djangorestframework-simplejwt
,然后source bin/activate
激活我的环境。然后,我将运行pip install djangorestframework-simplejwt
,它将使用缓存的版本。