How to get rid of a global.target within the terminal on MacOS?

32 views Asked by At

I have run into this problem where anything I install with pip installs to my main location of python and not to my virtual environments.

The following line is what I get when I run: python3 -pip config list

Coles-MacBook-Air:/ colekellow$ python3 -m pip config list global.target='/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages'

I do not know how to get rid of the global.target and have looked around to no avail. I have found a post on github where someone had the global.target, but there was no suggestion on how to remove it. Any and all help will be appreciated thanks.

1

There are 1 answers

1
cmkellow On

This post was cross-posted to GitHub. On GitHub, chrysle responded with an answer that worked to remove the global.target using:

pip config unset global.target