Skip to content

Instantly share code, notes, and snippets.

@turtlemonvh
Created February 4, 2021 04:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turtlemonvh/d4c5b3d548a276f16d57c3d6da7cb13d to your computer and use it in GitHub Desktop.
Save turtlemonvh/d4c5b3d548a276f16d57c3d6da7cb13d to your computer and use it in GitHub Desktop.
Get the location of `easy-install.pth`
python -c 'import site; print(",".join(site.getsitepackages()))' | tr , '\n' | xargs -I {} find {} -name easy-install.pth
@turtlemonvh
Copy link
Author

This is used by pip install -e . or python setup.py develop and can be annoying to find on platforms with anaconda and complex venv setups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment