Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 350
Sonalika Singhal Avatar asked Nov 18 '17 18:11

Sonalika Singhal


3 Answers

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

virtualenv env -p C:/Python36/python.exe
like image 176
shahin mahmud Avatar answered Oct 18 '22 00:10

shahin mahmud


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.
$  
like image 31
Nasimuddin Ansari Avatar answered Oct 18 '22 01:10

Nasimuddin Ansari


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

like image 2
Blue Like Avatar answered Oct 18 '22 01:10

Blue Like