Ubuntu 18
安装 Python 3.7
报错的解决方案
0. 环境
- 系统版本:
Ubuntu 18.04.1 LTS
Python
版本:Python 3.7.0
1. sudo make install
报错 ZipImportError
- 错误信息如下:
zipimport.ZipImportError: can't decompress data; zlib not available
- 解决方案:
sudo apt install zlib1g-dev
2. sudo make install
报错 ModuleNotFoundError
- 错误信息如下:
ModuleNotFoundError: No module named '_ctypes'
- 解决方案:
sudo apt install libffi-dev
3. pip3.7 list
提示没有 ssl
模块
- 提示信息如下:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
- 解决方案:
sudo apt install libssl-dev
./configure
make
sudo make install
本文含有隐藏内容,请 开通VIP 后查看