https://gist.github.com/alyssaq/f60393545173379e0f3f
- Install Python 3.6.x from https://www.python.org/downloads/ or via homebrew
Check that python3 has been installed by running it at the terminal:
$ python3
>>> Python 3.6.4
- Download
get-pip.pyfrom https://bootstrap.pypa.io/get-pip.py and install (this should already be installed if python was installed from python.org or homebrew):
$ curl -O https://bootstrap.pypa.io/get-pip.py
$ sudo python3 get-pip.py
- Install virtualenv and virtualenvwrapper
$ sudo -H pip3 install virtualenv
$ sudo -H pip3 install virtualenvwrapper --ignore-installed six
- Add the following to your
~/.bash_profileto load virtualenvwrapper then runbash -l
if [ -e /usr/local/bin/virtualenvwrapper.sh ]; then
source /usr/local/bin/virtualenvwrapper.sh
fi
- Create your virtual enviornment named
py3
$ mkvirtualenv --python=`which python3.6` py3

被折叠的 条评论
为什么被折叠?



