centos 下面安装python2.7 +pip +mysqld
作者:hebedich 时间:2024-01-22 15:10:43
python2.7
wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
yum install xz-libs
xz -d Python-2.7.6.tar.xz
ls
tar -xvf Python-2.7.6.tar
cd Python-2.7.6
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline
LDFLAGS="-Wl,-rpath /usr/local/lib"
vim /etc/ld.so.conf
./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
make clean
make && make altinstall
pip
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz
tar -vxf setuptools-1.4.2.tar.gz
cd setuptools-1.4.2
python2.7 setup.py install
easy_install-2.7 pip
mysqldb
yum -y install MySQL-python
yum -y install mysql-devel
easy_install-2.7 MySQL-python
标签:centos,安装python
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
使用python实现链表操作
2021-07-29 23:30:38
![](https://img.aspxhome.com/file/2023/4/80604_0s.png)
Python pygorithm模块用法示例【常见算法测试】
2023-05-19 00:23:59
关于python中导入文件到list的问题
2021-03-03 21:46:16
![](https://img.aspxhome.com/file/2023/9/125139_0s.png)
python利用opencv实现SIFT特征提取与匹配
2021-07-22 19:08:46
![](https://img.aspxhome.com/file/2023/8/69058_0s.jpg)
python pygame实现2048游戏
2021-02-25 15:15:45
![](https://img.aspxhome.com/file/2023/5/93585_0s.jpg)
浅谈终端直接执行py文件,不需要python命令
2022-12-25 14:38:11
CI框架教程之优化验证码机制详解【验证码辅助函数】
2024-05-13 09:56:34
python 字典和列表嵌套用法详解
2022-04-12 10:58:12
sp_executesql 使用复杂的Unicode 表达式错误的解决方法
2012-01-29 17:58:52
python实现桌面托盘气泡提示
2023-05-16 21:27:15
Python使用import导入本地脚本及导入模块的技巧总结
2022-09-07 15:09:29
python数据分析数据标准化及离散化详解
2023-07-05 20:36:39
![](https://img.aspxhome.com/file/2023/5/67315_0s.png)
python模块常用用法实例详解
2023-07-30 01:38:54
收藏整理的一些Python常用方法和技巧
2023-01-04 10:42:38
python网络编程之TCP通信实例和socketserver框架使用例子
2023-02-03 05:53:09
![](https://img.aspxhome.com/file/2023/0/90940_0s.jpg)
Python编写淘宝秒杀脚本
2021-01-31 23:23:42
![](https://img.aspxhome.com/file/2023/8/79418_0s.jpg)
vue3如何实现挂载并使用axios
2023-07-02 16:46:06
![](https://img.aspxhome.com/file/2023/3/139783_0s.png)
PyTorch零基础入门之逻辑斯蒂回归
2022-09-09 03:44:25
![](https://img.aspxhome.com/file/2023/7/115837_0s.png)
js断点调试心得分享(必看篇)
2023-07-06 22:13:25
![](https://img.aspxhome.com/file/2023/6/55896_0s.png)
MS SQL Server数据库清理错误日志的方法
2024-01-12 19:22:00
![](https://img.aspxhome.com/file/2023/9/122369_0s.jpg)