0

I want to learn Django so for that, as per the instructions on the website, you need to create a virtual environment. I've heard enough horror stories about people corrupting their OS cause they didn't set up the virtual environments properly so it's safe to say I'm sufficiently paranoid.

I've created a separate folder/directory VirtualE at located at Academics/CS/VirtualENV and I want to create all my virtual environments there. As per the website, the following command should be used -

virtualenv --python=`which python3` ~/.virtualenvs/djangodev

I'm not sure what exactly I should write in place of the single quotes (the which python3 part). I wrote the following -

virtualenv --python=3.5.2 ~/Academics/CS/VirtualENV/DjangoDev

It says

The path 3.5.2 (from --python=3.5.2) does not exist

Where exactly am I going wrong?

3
  • Can you cd to the Academics/CS/VirtualENV folder....once inside the folder type pwd...then paste that output in your virtual env command.. Commented Aug 29, 2017 at 16:39
  • @Hackerman same error Commented Aug 29, 2017 at 16:43
  • And with the command provided by @Heapify you have the full answer....that command tell you where python lives Commented Aug 29, 2017 at 16:45

1 Answer 1

3

In the command line, type "which python3" and it will give you the path to python3. You just need to copy and paste that in the command. For example:

virtualenv --python=/path/to/python3/bin/python ~/Academics/CS/VirtualENV/DjangoDev
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.