Home > OS >  I Can't Create a Virtual environment For Django
I Can't Create a Virtual environment For Django

Time:03-29

I wanted to create a Virtual Environment for My Django Project But whenever i tried to install pipenv it doesn't work. Please

I want to install and create a Virtual environment.

CodePudding user response:

If you're running Ubuntu 20.04 LTS and want Python 3, this should do it:

sudo apt install python3-venv, python3, python-is-python3, python3-pip
python -m venv .venv
source .venv/bin/activate

But you would have an easier time getting good answers if you included a little more information in your question, e.g. OS and error message.

CodePudding user response:

Try installing with

pip3 install virtualenv

and then make the environment using python3 -m venv env_name

  • Related