Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

from pip_inside import install; install('useful_module')

Resources

License

Releases

No releases published

Packages

No packages published

Languages