Debian 9安装 Python3.7 遇见的环境问题
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Debian 9安装 Python3.7 遇见的环境问题相关的知识,希望对你有一定的参考价值。
问题一
zipimport.ZipImportError: can‘t decompress data; zlib not available
Makefile:1130: recipe for target ‘install‘ failed
make: *** [install] Error 1
sudo apt-get install zlib1g-dev
问题二
ModuleNotFoundError: No module named ‘_ctypes‘
Makefile:1130: recipe for target ‘install‘ failed
make: *** [install] Error 1
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus build-essential libncursesw5-dev libgdbm-dev libc6-dev zlib1g-dev libsqlite3-dev tk-dev libssl-dev openssl libffi-dev
以上是关于Debian 9安装 Python3.7 遇见的环境问题的主要内容,如果未能解决你的问题,请参考以下文章
Python3.7.0以上版本安装pip报错ModuleNotFoundError: No module named ‘_ctypes‘解决方法