Two installed versions of Python often do not play nicely with each other, and it seems like you have two installed versions of Python 3. Problems seem to be caused not only by the PATH environment variable, but also by file associations. If this is the case I would suggest either of two approaches:
1. Uninstall both Python Version 3 installations and reinstall Python 3 (takes the least skill).
2. Try the following:
a. In Windows 10, goto
b. Modify the two Python items in the
c. Reset the file associations (must be run as adminstrator - Right Click the .bat file and choose 'Run as Administrator'):
In a Windows .bat file
1. Uninstall both Python Version 3 installations and reinstall Python 3 (takes the least skill).
2. Try the following:
a. In Windows 10, goto
Apps and Features
and see if you have two versions of Python 3 installed. If so delete one of them.b. Modify the two Python items in the
PATH
environment variable per snippsat's post above.c. Reset the file associations (must be run as adminstrator - Right Click the .bat file and choose 'Run as Administrator'):
In a Windows .bat file
rem ############################################################################# rem ############################################################################# rem Change the line below to reflect your base Python folder set PythonDIR=C:\Python rem assoc displays or changes the association between a file extension and a fileType rem ftype displays or changes the link between a FileType and an executable program assoc .py=Python.File >NUL assoc .pyw=PythonW.File >NUL ftype Python.File="%PythonDIR%\python.exe" %%1 %%* >NUL ftype PythonW.File="%PythonDIR%\pythonw.exe" %%1 %%* >NULLewis
To paraphrase: 'Throw out your dead' code. https://www.youtube.com/watch?v=grbSQ6O6kbs Forward to 1:00