标签:查看 exe 输出 安装python ref nbsp 就是 dock ase
进入到相关目录
cd /usr/bin
安装python3
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
备份python2
mv python python.bak
获取包
wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz
进入包
tar -xvJf Python-3.6.2.tar.xz
cd Python-3.6.2
./configure prefix=/usr/local/python3
make && make install
ln -s /usr/local/python3/bin/python3 /usr/bin/python
python -V 看看输出的是不是python3的版本
执行python2 -V 看到的就是python2的版本
cd /usr/bin/
ls yum*
vi /usr/libexec/urlgrabber-ext-down
which python
安装pip
安装epel扩展源:
yum -y install epel-release
yum -y install python-pip
yum clean all
pip install virtualenv
pip install virtualenvwrapper
pip install --upgrade pip
export WORKON_HOME=/home/python/env
source /usr/bin/virtualenvwrapper.sh
source ~/.bashrc
mkvirtualenv py2 -p /usr/bin/python2
安装git
yum install perl openssh git
git clone https://github.com/zaxlct/MxOnline_Django.git
cd MxOnline_Django
# 查看 docker-compose 是否已安装
docker-compose -v
安装mysql
标签:查看 exe 输出 安装python ref nbsp 就是 dock ase
原文地址:https://www.cnblogs.com/cerofang/p/9963198.html