Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to start python in windows

Earlier I had installed Python 3.5 using chocolatey but when I found that libraries that I need to make use only is allowed only for Python version 2 - I uninstalled Python 3.5 and then install Python 2.7.3 from Control Panel.

I ensured that I set the PATH variable correctly for Python -

PATH=....;C:\Python27

but still when I invoke python from prompt I get the below error :

C:\>python 
Cannot find file at '..\\lib\python3\tools\python.exe' 
(C:\ProgramData\chocolatey\lib\python3\tools\python.exe). This usually 
indicates a missing or moved file. 

How do I set the chocolatey package manager issue resolved?

like image 361
Programmer Avatar asked Sep 20 '25 18:09

Programmer


1 Answers

I had the same issue after I had run chocolatey uninstall python and uninstalled in other python versions in control panel. I was able to resolve it by removing the python.exe and pythonw.exe from the chocolatey bin directory (C:\ProgramData\Chocolatey\bin).

del C:\ProgramData\Chocolatey\bin\pytho*.exe

Hope this helps!

like image 130
eepzable Avatar answered Sep 22 '25 07:09

eepzable