安装环境依赖
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel mysql-devel gcc gcc-devel python-devel
下载python3
wget "https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz"
安装python3
tar -zxvf Python-3.6.4.tgz mkdir /usr/local/python3 Python-3.6.4/configure --prefix=/usr/local/python3 make && make install
建立链接
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
安装pip3 和 virtualenv
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3 pip3 install virtualenv ln -s /usr/local/python3/bin/virtualenv /usr/bin/virtualenv virutalenv -p /usr/bin/python3 imooc_env
设置共享文件夹
mkdir -p /media/cdrom mount /dev/sr0 /media/cdrom cd /media/cdrom
cp -R /media/cdrom /usr/local/src/VBoxAdditions yum install -y gcc gcc-devel gcc-c++ gcc-c++-devel make kernel kernel-devel bzip2
#重启 shutdown -r now #安装增强工具 /usr/local/src/VBoxAdditions/VBoxLinuxAdditions.run install
挂载共享文件夹
#切换到root用户输入挂载命令: sudo mount -t vboxsf shared_file /home/food
shared_file为共享文件夹名称(在设置页面设置的) 挂载的目录