赞
踩
我注意到报错提示内容中有这样一段文字
This means your Python installation does not come with proper shared library files.
This usually happens due to missing development package, or unsuitable build parameters of the Python installation.
* On Debian/Ubuntu, you need to install Python development packages:
* apt-get install python3-dev
* apt-get install python-dev
* If you are building Python by yourself, rebuild with `--enable-shared` (or, `--enable-framework` on macOS)`
于是我试了一下命令 apt-get install python3-dev ,但是发现安装的依然是系统自带3.6版本的依赖,所以我尝试了以下命令,结果发现是可行的,也解决了这个问题,如果是其他python版本例如 3.8,3.9的话,替换以下命令中的版本号应该也是可行的。
sudo apt-get install python3.7-dev
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。