1. 程式人生 > >安裝Django1.11.7時發現的問題,關於pip is configured with locations that require TLS/SSL, however the ssl

安裝Django1.11.7時發現的問題,關於pip is configured with locations that require TLS/SSL, however the ssl

首先設定了一個虛擬環境

mkvirtualenv -p /usr/bin/python3.5 +虛擬環境名稱

然後下載django

pip install Django==1.11.7

報錯了

出現了很長一堆,然後開始往上尋找pip的錯誤,發現pip顯示pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.這段話,實際上中間有很多出錯提示,但是沒有截圖,也忘記貼上複製了,於是從網上搜尋了方法,告知是因為安裝python3.6時在編譯時步驟不對,於是開啟python3.6那個目錄下重新執行了

./configure --with-ssl

make

sudo make install

激動,成功了

p.s:以上所訴是我學習過程中碰到的問題和解決,我想記錄一下,我自己都不知道是不是每次這麼解決都對,如有犯錯的地方,還請各位指出。

p.s:我安裝python3.6時是完全安裝readme裡面的步驟安裝的,但是卻出現了pip不能用的情況,

我的步驟是  mkdir debug
    cd debug
    ../configure --with-pydebug
    make

    make test

有沒有大神可以告知下,這種方式是不是缺少了什麼步驟呢?前提是我已經完全做好了python3.5虛擬環境,並且pip安裝完成,肯定不是pip沒有安裝的問題。