Re: Problem installing 3.6.1 AMD64

2017-04-06 Thread Colin J. Williams
   Eryk,

   Many thanks.  I wasn't aware of the Path Editor,

   Colin W.

   On 2017-04-05 7:55 PM, eryk sun wrote:

 On Wed, Apr 5, 2017 at 6:46 PM, Colin J. Williams [1] wrote:

Successful install reported, but:

  Microsoft Windows [Version 10.0.14393]
  (c) 2016 Microsoft Corporation. All rights reserved.

 You're using Windows 10.


  C:\Users\CJW>cd\python
  The system cannot find the path specified.

  C:\Users\CJW>cd\

 What is this supposed to be doing?


  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.

 The environment variable editor in Windows 10 has made editing PATH
 about as easy as possible. Just manually remove (select and click on
 "Delete") whichever paths are no longer valid. Apparently one is
 per-machine in "C:\Program Files\Python35", which will likely be in
 the system PATH, and the other is per-user in
 "C:\Users\CJW\AppData\Local\Programs\Python\Python35", which will
 likely be in the user PATH.

References

   Visible links
   1. mailto:c...@ncf.ca
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem installing 3.6.1 AMD64

2017-04-05 Thread eryk sun
On Thu, Apr 6, 2017 at 12:12 AM, MRAB  wrote:
 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!

Changing an environment variable in a process applies only to the
process and its descendants. It doesn't change the persistent value
that, on Windows, is stored in the registry. It's best to use the GUI
shell's environment-variable editor for this, for multiple reasons.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem installing 3.6.1 AMD64

2017-04-05 Thread MRAB

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!
--
https://mail.python.org/mailman/listinfo/python-list


Re: Problem installing 3.6.1 AMD64

2017-04-05 Thread eryk sun
On Wed, Apr 5, 2017 at 6:46 PM, Colin J. Williams  wrote:
>Successful install reported, but:
>
>  Microsoft Windows [Version 10.0.14393]
>  (c) 2016 Microsoft Corporation. All rights reserved.

You're using Windows 10.

>  C:\Users\CJW>cd\python
>  The system cannot find the path specified.
>
>  C:\Users\CJW>cd\

What is this supposed to be doing?

>  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.

The environment variable editor in Windows 10 has made editing PATH
about as easy as possible. Just manually remove (select and click on
"Delete") whichever paths are no longer valid. Apparently one is
per-machine in "C:\Program Files\Python35", which will likely be in
the system PATH, and the other is per-user in
"C:\Users\CJW\AppData\Local\Programs\Python\Python35", which will
likely be in the user PATH.
-- 
https://mail.python.org/mailman/listinfo/python-list


Problem installing 3.6.1 AMD64

2017-04-05 Thread Colin J. Williams
   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.

   Colin W.
-- 
https://mail.python.org/mailman/listinfo/python-list