Skip to content
from pip_inside import install; install('useful_module')
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pip_inside
AUTHORS.txt
LICENSE
README.md
setup.py

README.md

pip_inside

Install packages using pip from inside a python console/interpreter:

>>> from pip_inside import install
>>> install('pip install useful_module')

This tool solves the age-old problem of pip installing a package only to realize that it was installed for the wrong interpreter. By installing from the interpreter, such mismatches are unlikely to occur.

Installation

Until the first release on PYPI, the following method will install pip_inside from the python console/REPL:

import subprocess
import sys
cmd = 'pip install --user git+https://github.com/reynoldsnlp/pip_inside'
cmd = [sys.executable,  '-m'] + cmd.split()
subprocess.check_call(cmd)

... or from bash:

$ pip install --user git+https://github.com/reynoldsnlp/pip_inside
You can’t perform that action at this time.