Skip to content

Instantly share code, notes, and snippets.

@z2015
Created May 2, 2016 02:34
Show Gist options
  • Select an option

  • Save z2015/17fe0dc1c87ab4b879a62236b86e1df1 to your computer and use it in GitHub Desktop.

Select an option

Save z2015/17fe0dc1c87ab4b879a62236b86e1df1 to your computer and use it in GitHub Desktop.
Virtualenv搭建python3环境并安装djangoproject
sudo pip install virtualenv
sudo apt-get install python3
virtualenv --no-site-packages --python=python3.4 test_env
如果出现The executable python does not exist 错误,那么可以这样使用
virtualenv --no-site-packages --python=3.4 test_env
source test_env/bin/activate
pip install django
virtualenv pip install django
import django
deactivate
//http://haofly.net/virtualenv-python3-django/
python3 -m virtualenv
//http://askubuntu.com/questions/279959/how-to-create-a-virtualenv-with-python3-3-in-ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment