D
D
Drovosek012019-02-07 12:24:02
Python
Drovosek01, 2019-02-07 12:24:02

Why is Python installed in \Appdata\Locals\Programs\ and how to move it painlessly?

Hello.
Recently reinstalled Windows 10, then reinstalled all programs.
python3.7 installed especially without looking, I only checked that there was a jackdaw so that it would automatically register in PATH.
Now I had to find the installation folder and found it in
C:\Users\<user_name>\AppData\Local\Programs\Python\Python37-32\
I remember that when I installed version 3.6.x in the summer, it was installed in C:\ Program Files (x86)\Python36-xx\
This leads to questions:
1. Why Python was not installed in Program Files, as usual (probably usually), but in C:\Users\<user_name>\AppData\Local\Programs\Python\ Python37-32\ ?
2. Will this "hurt" the installation of packages in the sense that the path to the Python root folder is too long and will it not turn out that when installing some packages, some files will exceed the length of the absolute path of 260 characters and thus will not be installed correctly ?
3. Is it possible to "painlessly" move the Python folder from Locals to C:\Program Files (x86)\ by simply moving the folder and changing the value in PATH?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2019-02-07
@Drovosek01

1.Because you selected "Install for me only" during installation. Now many installers have mastered this skill, which is exactly what it means - installation in a user profile. The "Public" installation is in Program Files (or possibly ProgramData) and the installer will ask for privilege escalation (if UAC is enabled).
2. Rather not. About 260 characters - you have outdated information. Now in Windows there is no such restriction. Many programs "out of habit" build this restriction into their own code themselves (although Microsoft helps them with this). As far as I know, Python does not suffer from this.
3. I would take down and reinstall. But in general, in my opinion, the python in the system, except for PATH, is not registered anywhere, so you can try.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question