0

I’ve installed the latest version of python under Windows 10 to c:\python312. However, when I install some python modules via pip they appear not in this folder, but in %APPDATA%\Python\Python312. Is there any way to change this path to other folder? I want to have the whole python package in one folder in order to copy it to another PC or laptop.

I didn’t find any variable to set in order to change the location of python modules.

3
  • Make sure you have write access to the Python installation folder. Otherwise simply create an venv at the path of your choice and install the modules into it by activating the venv (execute venvpath\Scripts\activate.exe ) Commented Apr 18, 2024 at 21:23
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. Commented Apr 19, 2024 at 6:48
  • Sounds like you are looking for virtual environments. Then all you need to copy over is requirements.txt Commented Apr 19, 2024 at 8:28

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.