centos6安装python3.4和pip3

在安装了epel源的情况下,直接yum就可以安装python3.4

yum install python34 -ypython3 --version

没有自带pip3,从官网安装

wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
python3 get-pip.pypip3 -V

写个简单的代码

#!/usr/bin/python3
# -*- coding: UTF-8 -*-

import sys
print(sys.version)

over

时间: 2024-10-10 08:33:11

centos6安装python3.4和pip3的相关文章

ubuntu12.04安装python3.5及pip3和setuptools

系统环境 ubuntu12.04(32bit) 默认系统已经自带了python2.7.在安装python3.5的时候,不要将python2.7的版本删掉,因为系统本身有很多功能都是需要python2.7的支持.可以通过vitrualenv工具,给不同python版本做环境隔离,应该就可以让不同版本的python共存了.其实,在安装python3.5的时候,注意配置一下安装路径,重新建立软链接就能很好地区分python2.7和3.5了,不需要用到vitrualenv. 本文主要记录了,在安装pyt

centos6安装python3.6.4

安装Python依赖包: [[email protected] src]# yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make 下载Python源码包: [[email protected] src]# wget ttp://mirrors.sohu.com/python/3.6.4/Python-3.6.4.tgz 编译.安装:

centos6安装python3

到官网找到最新版本源码下载地址 https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz [[email protected] Downloads]# wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz [[email protected] Downloads]# tar zxvf Python-3.5.1.tgz cd Python-3.5.1 ./configure

centos6 安装python3.5后pip无法使用的处理

现象:安装pip后发现命令无法识别command not found 原因:which查看找到不到执行路径   find搜索发现安装后存放在/usr/local/python3.5/bin下,于是判断是因为没有注册路径的问题 解决:参考地址为https://lempstacker.com/tw/Installing-Python-3-5-on-CentOS-7/ http://blog.csdn.net/apn172/article/details/8868968 1.导出头文件: /usr/l

Centos6 安装python3.6

1.安装依赖包yum install bzip2-devel db4-devel expat-devel gcc gdbm-devel libffi-devel libpcap-devel ncurses-devel openssl-devel patch python-devel readline-devel sqlite-devel tk-devel xz-devel zlib-devel -y 2.下载python3.6安装包:wget --no-check-certificate htt

centos6.5下安装python3安装、python3虚拟环境创建venv

原因:在安装完centos6.5后,通过命令行键入python时,默认为python2.6.6版本,系统并没有安装python3版本.又想学习python3,因此需要在centos6.5下安装python3版本. <python3安装> 1.下载python3的安装包: (1)如果能够联网,则直接: [[email protected] 3pyex]# wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz 其中,我这里安装的

centos6.8安装python3.7.3报错Can&#39;t connect to HTTPS URL because the SSL module is not available问题解决

环境:CentOS release 6.8 (Final) # 直接编译python3.7在使用pip3安装依赖的时候报错: Can't connect to HTTPS URL because the SSL module is not available. 解决方法: 1.编译安装OpenSSL 1.0.2j版本并重新配置环境变量 下载OpenSSL源码包: wget http://www.openssl.org/source/openssl-1.0.2j.tar.gz 解压缩,编译安装:

centos6/7 python3及yum安装教程

适用于Centos6/7 1.配置好epel源和ius源 Centos 6 yum install https://centos6.iuscommunity.org/ius-release.rpm -ywget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo Centos 7 yum install https://centos7.iuscommunity.org/ius-release.rpm -

centos下安装Python3及Pip3并保留Python2

1. 安装依赖环境 # yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz 3. 创建Python3的目录 # mkdir /usr/