centos7 安装 python3 pip3不能使用问题

来源:互联网 发布:查询域名的二级域名 编辑:程序博客网 时间:2024/05/17 06:15

终于可以输出一点经验了。。


总结了其他人的经验,经过自己尝试成功了


分享给大家做参考


os: centos 7


#安装gcc,否则在./configure时会error
yum install gcc


#安装openssl-devel,否则会忽略pip安装失败,但是没有error
yum install openssl-devel


#安装python3
wget https://www.python.org/ftp/python/3.5.3/Python-3.5.3.tar.xz
xz -d Python-3.5.3.tar.xz
tar -xvf Python-3.5.3.tar
cd Python-3.5.3
./configure
make
make install

完成

0 0
原创粉丝点击