2017-01-16 38 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