centos下安装python3.5.2
来源:互联网 发布:知牛财经 编辑:程序博客网 时间:2024/06/05 10:15
centos下安装python3.5.2
pyenv是一个便于使用多版本Python环境的工具,pyenv使用shell脚本编写的,只需要下载就可以使用了,不需要root用户
1,环境准备,虚拟机可以正常上网
我在自己的PC上安装的是centos7.2 的系统,默认需要安装git 工具
安装git yum -y install git
2,安装 pyenv
`curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash`
配置环境变量, 在 `~/.bash_profile`里增加如下内容 vi ~/.bash_profileexport PATH="~/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
3,安装编译工具
`yum -y install gcc make patch`
4,安装依赖
`yum -y install gdbm-devel openssl-devel sqlite-devel readline-devel zlib-devel bzip2-devel`
5, 安装Python 3.5.2 `pyenv install 3.5.2`
到此,pyenv以及python 3.5.2 就安装就完成,pyenv local 3.5.2 可以切换到 3.5.2 版本 ,pyenv local system 可以切换到centos 自带的版本
1 0
- centos下安装python3.5.2
- centos下安装python3
- centos下安装python3
- centos下安装python3
- CentOS下安装python3
- centos下安装python3.5
- CentOS下安装Python3.5
- 在CentOS下安装Python3
- python3 centos下安装tkinter
- Centos下安装Python3.5.1
- centos 安装python3.5.2
- centos 安装python3.5.2
- Centos 6.4下安装升级Python3.3
- centos下安装python3的方法
- CentOS 7下安装Python3.5
- CentOS 7下安装Python3.5
- CentOS 7下安装Python3.5
- CentOs 7 下安装Python3.5
- 百度地图开发API之加载地图和添加地图控件
- Push failed Failed with error failed; result=22, HTTP code = 411
- 加载顺序为:context-param -> listener -> filter -> servlet
- ctags+taglist+cscope的安装以及常用快捷键
- 删除图片物理地址
- centos下安装python3.5.2
- Linux内核中的有关Page的算法
- springboot学习(一)认识springboot及创建第一个springboot项目
- 关于日期时间开发
- Spring AOP三种配置详细介绍
- ADO
- 移动手机开发meta注意问题
- HDU-3870-Catch the Theves
- PHP开发小技巧⑧—CURL请求