简体   繁体   中英

python3.6 ssl erro

In Ubuntu 16.04, I use python3.6 ( pip 9.0.1) to install BeautifulSoup but failed. The error is:

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

Secondly, Ubuntu 16.04 ships with the built-in python2.7, but I want to learn Python 3.6. So I load it and use that order:

./configure
make && make install

The result is the python 3.5 was installed in the PATH , and BeautifulSoup was installed. I use make altinstall to complete the Python 3.6 installing. It's so wondering.

Before ./configure you need install all requirements.

In your case, not enough libssl-dev library.

To install it using apt do this:

# apt install libssl-dev

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM