Skip to content

Instantly share code, notes, and snippets.

@asears
Created December 23, 2020 15:39
Show Gist options
  • Select an option

  • Save asears/0f10fa2d767e4b8f5eed46a450bb2cdb to your computer and use it in GitHub Desktop.

Select an option

Save asears/0f10fa2d767e4b8f5eed46a450bb2cdb to your computer and use it in GitHub Desktop.
Pip Helper commands
#!/bin/bash
pip install -r requirements.txt
# if repo has a setup.py
pip install git+https://github.com/terrykong/tfrecord-browser
pip install .\terrykong\tfrecord-browser
pip freeze
pip freeze -r requirements.txt
pip freeze -l
pip freeze --trusted-host name:port
pip freeze -l --user
pip list
pip show
pip show tfrecord-browser
# check valid environment/deps
pip check
pip debug
# %APPDATA%\Python\Python37\site-packages\pip
pip cache dir
pip cache info
pip cache list --format=abspath
pip cache purge
# Shows location of virtual, user, global, site pip.ini
pip config debug
pip wheel
# Multiline comment hack
:'
Loading KWallet
Loading SecretService
Loading Windows
Loading chainer
Loading macOS
Description:
Build Wheel archives for your requirements and dependencies.
Wheel is a built-package format, and offers the advantage of not
recompiling your software during every install. For more details, see the
wheel docs: https://wheel.readthedocs.io/en/latest/
Requirements: setuptools>=0.8, and wheel.
'pip wheel' uses the bdist_wheel setuptools extension from the wheel
package to build individual wheels.
'
pip search
# pip search down due to DoS issues
# https://status.python.org/
# constrain to specific versions
pip install -r requirements.txt -c constraints.txt
:`
Install packages from:
- PyPI (and other indexes) using requirement specifiers.
- VCS project urls.
- Local project directories.
- Local or remote source archives.
pip also supports installing from "requirements files", which provide
an easy way to specify a whole environment to be installed.
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment