Problem installing 3.6.1 AMD64

MRAB python at mrabarnett.plus.com
Wed Apr 5 20:12:01 EDT 2017


On 2017-04-05 19:46, Colin J. Williams wrote:
>     Successful install reported, but:
> 
>       Microsoft Windows [Version 10.0.14393]
>       (c) 2016 Microsoft Corporation. All rights reserved.
> 
>       C:\Users\CJW>cd\python
>       The system cannot find the path specified.
> 
>       C:\Users\CJW>cd\
> 
>       C:\>path
>       PATH=C:\Program Files\Python35\Scripts\;C:\Program
>       Files\Python35\;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system
>       32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
>       Files (x86)\ATI Technologi
>       es\ATI.ACE\Core-Static;C:\Program Files
>       (x86)\AMD\ATI.ACE\Core-Static;C:\WINDOWS\system32\config\systemprofile\.dnx\bin;
>       C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL
>       Server\130\Tools\Binn\;C:\Program Files\TortoiseHg\;
>       C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files
>       (x86)\Skype\Phone\;C:\Users\CJW\AppData\Local\Progra
>       ms\Python\Python35\Scripts\;C:\Users\CJW\AppData\Local\Programs\Python\Python35\;C:\Python35\Lib\site-packages\PyQt5;C:\
>       Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
>       Files (x86)\
>       ATI Technologies\ATI.ACE\Core-Static;C:\Program Files
>       (x86)\Skype\Phone\;C:\Users\CJW\AppData\Local\Programs\Git\cmd;C:\
>       Users\CJW\AppData\Local\Microsoft\WindowsApps;
> 
>       C:\>
> 
>     Python35 has been deleted, but it remains in the PATH.
> 
>     I would welcome advice.
> 
It's easy enough to remove those references.

Try to start Python 3.5 to check that it's really gone:

C:\> py -3.5

It should complain if it's no longer there.

Start Python 3.6:

C:\> py -3.6

Have a look at the references to Python 3.5 in the PATH environment 
variable to double-check:

 >>> import os
 >>> [p for p in os.environ['PATH'].split(';') if 'Python35' in p]

Remove those references from the PATH environment variable:

 >>> os.environ['PATH'] = ';'.join(p for p in 
os.environ['PATH'].split(';') if 'Python35' not in p)

Job done!


More information about the Python-list mailing list