$ sudo apt-get install python-virtualenv$ mkvirtualenv django_env$ source django_env/bin/activate(django_env) $ pip install django(django_env) $ cd $HOME(django_env) $ mkdir projects(django_env) $ cd projects(django_env)/projects $ django-admin.py startproject foo(django_env)/projects $ cd foo(django_env)/projects/foo $ python manage.py runserver
完成后;键入
deactivate以退出虚拟环境:
(django_env)/projects/foo $ deactivate/projects/foo $
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)