更新时间:2023-02-22 22:56:22
如果您使用的是ubuntu,请尝试以下操作:
Try this if you are on ubuntu:
sudo apt-get update
sudo apt-get install build-essential libpq-dev libssl-dev openssl libffi-dev zlib1g-dev
sudo apt-get install python3-pip python3.7-dev
sudo apt-get install python3.7
如果您没有存储库,那么它会触发一个未找到的软件包,您首先必须安装此软件包:
In case you don't have the repository and so it fires a not-found package you first have to install this:
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
此处的更多信息: http://devopspy.com/python /install-python-3-6-ubuntu-lts/