Created
May 2, 2016 02:34
-
-
Save z2015/17fe0dc1c87ab4b879a62236b86e1df1 to your computer and use it in GitHub Desktop.
Virtualenv搭建python3环境并安装djangoproject
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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