gpt4 book ai didi

python3.6 ssl错误

转载 作者:太空宇宙 更新时间:2023-11-03 14:05:51 26 4
gpt4 key购买 nike

在 Ubuntu 16.04 中,我使用 python3.6 ( pip 9.0.1 ) 安装 BeautifulSoup 但失败了。错误是:

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

结果是在 PATH 中安装了 python 3.5,并且安装了 BeautifulSoup。我使用 make altinstall 来完成 Python 3.6 安装。真是太奇怪了。

最佳答案

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

在您的情况下,libssl-dev 库不足。

要使用 apt 安装它,请执行以下操作:

# apt install libssl-dev

关于python3.6 ssl错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41679373/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com