19

I have added python36/Scripts in the environment variable's path file and python36 as well is added. But it still shows the following error

Command = C:\Users\Sonalika\dev\trydjango1-11>virtualenv -p python3

Error I receive:

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

3

6 Answers 6

24

try something like this, here C:/Python36/python.exe give the full address of python3 executable

virtualenv env -p C:/Python36/python.exe
Sign up to request clarification or add additional context in comments.

3 Comments

If you already have python3 in your PATH try virtualenv -p python3.exe ENV
I had Python3.7 installed in my system but the executable file was python.exe. So, this worked for me - virtualenv -p python.exe ENV
7

Using full path will address this issue.

$  virtualenv --python=/usr/bin/python3 testenvironment
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/nansari/testenvironment/bin/python3
Not overwriting existing python script /home/nansari/testenvironment/bin/python (you must use /home/nansari/testenvironment/bin/python3)
Installing setuptools, pip, wheel...done.
$  which python3
/usr/bin/python3
$  python --version
Python 2.7.14 :: Anaconda, Inc.
$  

2 Comments

You may need to add "sudo -H" in front... but it works... if you want to install a different version of Python you first need to know where it is by typing "where Pythonxxx" on Mac (which on Microsoft)
This worked for me thanks (macOS Catalina with python and python3.)
2

if you have already python in you PATH, sure it works by default with python, no python3. you just have to run virtualenv -p python env

1 Comment

0

Try this :-

python -m easy_install virtualenv

1 Comment

Welcome to Stack Overflow! Please don't answer just with source code or commands. Try to provide a nice description about how your solution works. See: How do I write a good answer?. Thanks
0

Try running this command virtualenv -p python env i.e without specifying python3, i had same problem while using pycharm and after running this command on the terminal the error was resolved.

Comments

0

When you open your Command Prompt window, make sure to select "Run as administrator"

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.