python3升级
Posted Yared
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python3升级相关的知识,希望对你有一定的参考价值。
安装python3.7时候,报错ModuleNotFoundError: No module named ‘_ctypes
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 sudo apt-get install build-essential libncursesw5-dev libgdbm-dev libc6-dev sudo apt-get install zlib1g-dev libsqlite3-dev tk-dev sudo apt-get install libssl-dev openssl sudo apt-get install libffi-dev
然后重新编译
./configure make sudo make altinstall
以上是关于python3升级的主要内容,如果未能解决你的问题,请参考以下文章