Skip to main content

Automatically install missing modules using pip at import time. Best used with virtualenv.

Project description

Pipimport automatically installs missing modules using pip at import time. It is best used with virtualenv.

Just import pipimport and call install():

>>> import pipimport
>>> pipimport.install()

Now you can normally import modules that are not currently installed. Pipimport will call pip (form your virtualenv) and install it before importing.

>>> import unipath
Will install module unipath
Downloading/unpacking unipath
  Downloading Unipath-1.0.tar.gz
  Running setup.py egg_info for package unipath
Installing collected packages: unipath
  Running setup.py install for unipath
Successfully installed unipath
Cleaning up...
>>> unipath
<module 'unipath' from '/home/carles/Projectes/piphook/ve/local/lib/python2.7/site-packages/unipath/__init__.pyc'>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipimport-0.2.2.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file pipimport-0.2.2.tar.gz.

File metadata

  • Download URL: pipimport-0.2.2.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pipimport-0.2.2.tar.gz
Algorithm Hash digest
SHA256 b0fea9fbb72169d8dcbc098d6590a5eb96c81309d79cbaa817771b9575835091
MD5 2ca70bd6a69a35ba5ac4482292d175f7
BLAKE2b-256 dff7b7a1d1a46af98d96cb1b2c68cc26255364f9af7b1cf05c418a9f7dd05c3a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page