1.sudo apt-get intsall python3.5
2.sudo apt-get install python-virtualenv
3.pip install virtualenvwrapper
4.vim ~./bashrc
5.export WORKON_HOME=$HOME/.virtualenvs
source /home/jmy/.local/virtualenvwrapper.sh
6.source ~/.bashrc
7.mkvirtualenvtest #default is python2
8.mkvirtualenv --python =/usr/local/bin/python3 pyscrapy #where python3 located
网友评论