try: The executable python3.5 (from --python=python3.5) does not exist

Hey,

I’m trying to run this on Windows 10. After installing via pip I’m running into a couple separate issues

  1. try is masked by Windows PowerShell’s try syntax
  2. Running as a python m (python -m try requests) results in the error: The executable python3.5 (from --python=python3.5) does not exist

I’m using Python 3.5 installed to C:\Python35\python.exe

Any help would be great!

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

i did virtualenv -p3 virtual_env_name and this worked!

I had the same issue Maybe it’s because of python version. $python3 --version Python 3.4.0 So from --python=python3.4 It worked

I think this is coming from the second half of thebuild_virtualenv_cmd command. Running the first part works fine (and gives the output noted in the final log contents above)

> virtualenv env -p C:/Python35/python.exe
Running virtualenv with interpreter C:/Python35/python.exe
Using base prefix 'C:\\Python35'
New python executable in env\Scripts\python.exe
Installing setuptools, pip, wheel...done.

But the second part && . env/bin/activate is no good on windows. The equivalent would be

return "virtualenv env -p {0} > {1}; ./env/Scripts/activate".format(python_version, logfile)

But unfortunately in powershell there are permission problems with virtualenv (discussed here)

I had no problem running the above command in Git Shell fortunately. If I have time I will try to fork this and add windows support for running in Git Shell.