python2.7安装pip及下载第三方模块

python2.7安装pip及下载第三方模块,第1张

python2.7安装pip及下载第三方模块
[root@ip-172-31-43-221 ~]# wget https://bootstrap.pypa.io/get-pip.py
[root@ip-172-31-43-221 ~]# python get-pip.py
ERROR: This script does not work on Python 2.7 The minimum supported Python version is 3.6. Please use https://bootstrap.pypa.io/pip/2.7/get-pip.py instead.

[root@ip-172-31-43-221 ~]# wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
[root@ip-172-31-43-221 ~]# python get-pip.py
[root@ip-172-31-43-221 ~]# pip -V
pip 20.3.4 from /usr/lib/python2.7/site-packages/pip (python 2.7)
[root@ip-172-31-43-221 ~]# pip install -r requirements.txt
[root@ip-172-31-43-221 ~]# cat requirements.txt 
#Python2.7
Django==1.9.8
simplejson
python-memcached
PyMySQL
requests
soappy
uwsgi

报错:uwsgi安装错误 plugins/python/uwsgi_python.h:2:20: 致命错误:Python.h:没有那个文件或目录
解决:
yum install python-devel.x86_64

yum install python3-devel.x86_64

再pip install uwsgi

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5651234.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-16
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存