Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to change script installation location in python

I installed python in a directory but when i install a script, it installs in %appdata%/python folder (must be the default directory for installing scripts).

I tried using:
"pip config set global.target C:\Program Files\Pypy3.12.2\Scripts"
I got this:
"ERROR: Got unexpected number of arguments, expected 2. (example: "pip config set [name] [value]")"

Sorry if it a dumb question, im a beginner

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Quote your path with double quotes:

pip config set global.target "C:\Program Files\Pypy3.12.2\Scripts"

Double quotes are needed because the path contains whitespace.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading