-1

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.

2 Answers2

0

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.

EmilC
  • 1
  • I got this type of message " 'virtualenv' is not recognized as an internal or external command, operable program or batch file" – Lamim Rahman Mar 28 '22 at 07:13
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Mar 28 '22 at 12:17
0

Try installing with

pip3 install virtualenv

and then make the environment using python3 -m venv env_name

anosha_rehan
  • 1,522
  • 10
  • 17