Installed Virtualenv and activating virtualenv doesn't work

前端 未结 5 543
时光说笑
时光说笑 2021-02-04 06:59

I cloned my Django Project from Github Account and activated the virtualenv using famous command source nameofenv/bin/activate And when I run python manage.py

5条回答
  •  渐次进展
    2021-02-04 07:25

    on ubuntu version

    #install python pip 
    sudo apt-get install python-pip
    #install python virtualenv
    sudo apt-get install python-virtualenv
    # create virtual env 
    virtualenv  myenv
    #activate the virtualenv
    . myenv/bin/activate
    #install django inside virtualenv
    pip install django
    #create a new django project
    django-admin.py startproject mysite
    #enter to the folder of the new django project
    cd mysite
    #run the django project
    python manage.py runserver 
    

提交回复
热议问题