pip3 install flask
报错信息如下:
根据经验不能无脑直接最后一行去搜
Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
从这里开始看,可以看出缺少_ctypes这个库
原因centos7系统中没有安装外部(libffi)的开发链接库软件包,所以在pip安装的时候报错如下
ModuleNotFoundError: No module named '_ctypes'
解决方法:安装外部函数库(libffi-devel)
[root@bogon python3.8]# yum install libffi-devel -y
再重装python就解决了
文章出处登录后可见!
已经登录?立即刷新