2017-02-24 204 views
0

我想在我的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 

回答

0

嘗試安裝SSL模塊如果你使用python2蟒蛇,OpenSSL的,python3,OpenSSL,以便python3。 如果這不起作用,請嘗試升級pip版本。