1、yum -y insatall python3
2、wget https://bootstrap.pypa.io/get-pip.py;
3、python3 get-pip.py
4、sudo pip install virtualenv
5、sudo pip install virtualenvwrapper
6、sudo pip install virtualenvwrapper;
7、vim ~/.bashrc
8、添加:
alias sudo='sudo env PATH=$PATH'
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
9、source ~/.bashrc
10、
[root@www ~]# mkvirtualenv
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--read-only-app-data] [--app-data APP_DATA] [--reset-app-data] [--upgrade-embed-wheels] [--discovery {builtin}] [-p py] [--try-first-with py_exe]
[--creator {builtin,cpython3-posix,venv}] [--seeder {app-data,pip}] [--no-seed] [--activators comma_sep_list] [--clear] [--no-vcs-ignore] [--system-site-packages] [--symlinks | --copies] [--no-download | --download]
[--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip] [--no-setuptools] [--no-wheel] [--no-periodic-update] [--symlink-app-data] [--prompt prompt] [-h]
dest
virtualenv: error: the following arguments are required: dest
SystemExit: 2
成功!