Re:This Is What Python Beginners Have to Deal With
by talideon on Thursday September 08, 2016 @01:57PM
(#12455400)
If all you're doing is using pure Python code, there's no issue: you can install what you like, either with the --user flag or into a virtual environment. This situation is nothing like running pip as root.
Re:This Is What Python Beginners Have to Deal With
by crdoconnor on Thursday September 08, 2016 @03:27PM
(#12456441)
No, there are issues. If you install packages that have dependencies on libraries which apt-installed packages depend upon then you can break them.
This is all about running code in an uncontrolled environment.
Re:This Is What Python Beginners Have to Deal With
by talideon on Thursday September 08, 2016 @05:50PM
(#12457664)
This is what virtual environments are for, and your solution still uses virtual environments.
So no, there aren't.
Now, I have a project I'd like to try with per-process mounts of dependencies using unionfs. It'd be a lot of work, and a lot could go wrong, but would solve a lot of problems.
Re:This Is What Python Beginners Have to Deal With
by crdoconnor on Thursday September 08, 2016 @06:46PM
(#12458100)
>This is what virtual environments are for
Precisely. Virtualenvs solve part of the problem by isolating the python code and its dependencies - but not all of the code.
Apparently extending this behavior would cause security issues of an unknown nature...
You have a similar kind of pain when you have pip and apt trying to manage the system python installation.