Changing 'Scripts/*.exe'

dn PythonList at DancesWithMice.info
Sat Oct 1 14:16:56 EDT 2022


On 02/10/2022 04.50, Gisle Vanem via Python-list wrote:
> Hello list.
> 
> I'm moved my old Python27 installation from
>   f:\ProgramFiler\Python27  ( == 'ProgramFiles')
> to
>   f:\gv\Python27
> 
> and now many 'scripts/*.exe' program fails
> to start since the old path to 'Python.exe'
> is wrong.
> 
> E.g. 'Scripts/pip2.exe' has the path
> "f:\programfiler\python27\python.exe" hard-coded
> inside it.
> 
> Is there a easy way to fix this w/o re-installing this
> old Python?

Yes, by putting a symbolic-link at the old 'programfiler' location which
points to the new 'gv' installation.

Regret that not using MS-Windows, can't give exact instruction. Please
review:

Symbolic link: https://www.computerhope.com/jargon/s/symblink.htm
Symbolic Links:
https://learn.microsoft.com/en-us/windows/win32/fileio/symbolic-links

-- 
Regards,
=dn


More information about the Python-list mailing list