标签:sqlite 下载 env exit 安装python 配置 tao sqli exp
pyenv是一个多Python版本的托管工具,我们可以使用它安装Python和随意的切换系统环境中默认使用的Python版本。系统版本:CentOS Linux release 7.6.1810 (Core)
软件版本:无
硬件要求:无
[root@localhost ~]# yum -y install git gcc zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel tk-devel libffi-devel
[root@localhost ~]# git clone https://github.com/pyenv/pyenv.git ~/.pyenv
[root@localhost ~]# vim /etc/profile
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH=$HOME/.pyenv/bin:$PATH
eval "$(pyenv init -)"
[root@localhost ~]# source /etc/profile
[root@localhost ~]# pyenv -v
pyenv 1.2.18
[root@localhost ~]# pyenv install --list
[root@localhost ~]# for i in $(grep -r ‘www.python.org‘ ~/.pyenv/*|awk -F ‘:‘ ‘{print $1}‘|grep ‘^/‘);do sed -i ‘s#https://www.python.org/ftp/#https://npm.taobao.org/mirrors/#g‘ $i;done
[root@localhost ~]# pyenv install 3.6.9
[root@localhost ~]# v=3.6.9;wget https://npm.taobao.org/mirrors/python/$v/Python-$v.tar.xz -P ~/.pyenv/cache/;pyenv install $v
[root@localhost ~]# pyenv versions
* system (set by /root/.pyenv/version)
3.6.9
[root@localhost ~]# pyenv global 3.6.9
[root@localhost ~]# python
Python 3.6.9 (default, Apr 9 2020, 07:01:31)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
[root@localhost ~]# pyenv uninstall 3.8.0
pyenv: remove /root/.pyenv/versions/3.8.0? yes
[root@localhost ~]# pyenv versions
system
* 3.6.9 (set by /root/.pyenv/version)
标签:sqlite 下载 env exit 安装python 配置 tao sqli exp
原文地址:https://www.cnblogs.com/network-ren/p/12696977.html