2017-01-16 40 views
0

在Ubuntu 16.04中,我使用python3.6(pip 9.0.1)來安裝BeautifulSoup但失敗。錯誤是:python3.6 ssl erro

pip is configured with locations that require TLS/SSL , however the ssl module in Python is not available. 
could not fetch URL https://pypi.python.org 

其次,Ubuntu 16.04附帶內置python2.7,但我想學習Python 3.6。所以,我加載它,使用命令:

./configure 
make && make install 

結果是Python 3.5的安裝在PATH,並安裝BeautifulSoup。我使用make altinstall來完成Python 3.6的安裝。它很奇怪。

+0

究竟什麼是你的問題?請點擊**編輯**,並在此處添加詳細信息。 –

+0

對不起,我想知道如何在python3.6中安裝BeautifulSoup,即使我在python3.5中安裝模塊 –

+0

並且錯誤是關於ssl當我使用pip install時BeatifulSoup –

回答

0

之前./configure您需要安裝所有要求。

在你的情況下,沒有足夠的libssl-dev庫。

要利用它做apt此安裝:

# apt install libssl-dev