Stronghold
HomeServicesDocumentationBlog
  • Highly Secure Computing (Stronghold)
  • Data Management
    • SFTP Data Transfers
      • Data Imports
      • Data Exports
    • HTTPS Direct Downloads
      • FastX 3
      • FastX 2
    • Data Storage
    • Globus Transfers
      • Windows Tenants
      • Adding New Users
  • Usage
    • New Tenant Onboarding
    • Windows Environments
      • Access from Mac
      • Access from Windows
      • RDP Gateway from Mac
      • RDP Gateway from Windows
    • Linux Environments
      • FastX 3
      • FastX 2
  • Software
    • Windows Standard Software
    • Linux Standard Software
      • Julia
    • Package Archive Mirrors
      • BioConductor Mirror
      • CRAN Mirror
      • PyPI Mirror
    • Install R/Python Packages from Local File
    • Jupyter Lab on Linux Workstations
    • Changing the temporary folder for softwares
      • SAS
      • STATA
      • RStudio
    • Changing Default Package install locations on Windows
      • Python (Pypi packages)
      • R (CRAN Packages)
      • Stata packages
  • Git
    • Git Sync
    • GitLab
  • Access & Security Groups
    • User Groups
    • Lifespan Staff Access
  • Multi-Protocol Access
    • Access Same Data from Windows and Linux Workstations
Powered by GitBook
On this page
  • Step 0
  • Step 1
  • Step 2
  • Step 3
  • Step 4

Was this helpful?

  1. Software
  2. Changing Default Package install locations on Windows

Python (Pypi packages)

Step 0

Follow this step only if you have already installed python packages on this workstation. Otherwise, skip to the next step.

Run this command to save the list of installed packages to a file on the Desktop

pip freeze > %USERPROFILE%\Desktop\req.txt

Step 1

Identify the new location for installing python packages. Here, we will assume it is E:\pip_packages

Step 2

Open Command Prompt and run this command. This is a one-time setup.

pip config --user set install.target E:\pip_packages

pip config --user set install.user no

Step 3

After making these changes, run the command "pip config list" to verify the changes. You should see this output:

global.index-url='https://pypi.services.brown.edu/simple'

global.target='E:\\pip_packages'

global.trusted-hosted='pypi.services.brown.edu'

install.user='no'

Step 4

If you have performed Step 0, follow this step. Otherwise, your setup is complete.

Run this command to reinstall your packages

pip install -r %USERPROFILE%\Desktop\req.txt

After the installation is complete, feel free to delete the contents of this folder

%USERPROFILE%\AppData\Roaming\Python\Python37\site-packages

AppData is a hidden folder. To see this folder, click on "View" on the File Manager Menu bar -> Check the "Hidden items" checkbox

PreviousChanging Default Package install locations on WindowsNextR (CRAN Packages)

Last updated 1 year ago

Was this helpful?