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