3 ms·
> package manager is built into import system. > Importing a package that's not in the user's > environment yet will lead to something like > pip install
by devnonymous 10y ago
> package manager is built into import system.
> Importing a package that's not in the user's
> environment yet will lead to something like
> pip install at script startup
Here's a nifty little recipe I came up with to do just this by exploiting the import hooks introduced in py3.4
http://lonetwin.github.io/blog/html/2016/05/16/auto_install_missing_python_modules.html
- maweki 10y agoPlease don't do that. Provide a requirements-file with the appropriate dependencies and their versions to use with `pip install -r `