pip安装Django
问题描述:
我想在我的Linux服务器上安装Django。我已经成功安装了Python和pip,但是当我运行这个pip安装Django时,我收到了SSL错误。pip安装Django
pip install Django
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting Django
Could not fetch URL https://pypi.python.org/simple/django/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement Django (from versions:)
No matching distribution found for Django
答
尝试安装SSL模块如果你使用python2蟒蛇,OpenSSL的,python3,OpenSSL,以便python3。 如果这不起作用,请尝试升级pip版本。