corsheaders安装失败

pip install corsheaders安装报错

执行

pip install -ihttps://mirrors.aliyun.com/pypi/simple/ corsheaders

报错以下内容

ERROR: Could not find a version that satisfies the requirement corsheaders (from versions: none)
ERROR: No matching distribution found for corsheaders

解决

执行

pip install -ihttps://mirrors.aliyun.com/pypi/simple/ django-cors-headers

就可以成功安装了

pip install -ihttps://mirrors.aliyun.com/pypi/simple/ django-cors-headers
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting django-cors-headers
  Downloading https://mirrors.aliyun.com/pypi/packages/ca/33/033430239aaed3ab0dbf8f2baa0c8008198e06adb4334264552722f07429/django_cors_headers-3.3.0-py3-none-any.whl (14 kB)
Requirement already satisfied: Django>=2.0 in d:\anaconda3\lib\site-packages (from django-cors-headers) (2.2.1)
Requirement already satisfied: pytz in d:\anaconda3\lib\site-packages (from Django>=2.0->django-cors-headers) (2019.3)
Requirement already satisfied: sqlparse in d:\anaconda3\lib\site-packages (from Django>=2.0->django-cors-headers) (0.3.1)
Installing collected packages: django-cors-headers
Successfully installed django-cors-headers-3.3.0

你可能感兴趣的:(python)