Python/PIP Skip AppData folder in windows 10

I have installed python on my work laptop. Due to office policy I can not install any package at %APPDATA%. Security system does not allow any executable to run from that location.
I have tried changing the pip target to some other location but executables are not created at the target location.

here is my PIP.ini
target=C:\Program Files\Python38\Scripts

target=C:\Program Files\Python38\Scripts-user

target=C:\Program Files\Python38\site-packages

You can not skip these folders. Instead create a soft link on these locations with same name as the settings expect them. And store the files where you have the right to for execution. Also add this location in path instead of Appdata location.

1 Like