|
|
Subscribe / Log in / New account

Python virtual environments

Python virtual environments

Posted Jun 15, 2018 6:16 UTC (Fri) by ceplm (subscriber, #41334)
In reply to: Python virtual environments by rahulsundaram
Parent article: Python virtual environments

And why not to use packages from the distribution?


to post comments

Python virtual environments

Posted Jun 15, 2018 7:02 UTC (Fri) by kushal (subscriber, #50806) [Link] (1 responses)

Because in workshops we generally use latest packages from PyPI, which are not available from system. Also, this may install some other verison than the system version, which may break other applications on the system.

Python virtual environments

Posted Jun 20, 2018 2:19 UTC (Wed) by k8to (guest, #15413) [Link]

My view is that if you want to use virtualenvs in workshops (I would suggest giving them a container or vm instead), just have the virtualenv on when they log in. You can provide a flyer on setting up virtualenvs if you think that's necessary information to read when they try to use the skills.

Personally I've found virtualenvs to be so fragile that I will never use them again. I would advise teaching students a path that doesn't fall over so easily

Python virtual environments

Posted Jun 15, 2018 10:32 UTC (Fri) by rahulsundaram (subscriber, #21946) [Link]

> And why not to use packages from the distribution?

Not everything is packaged by distributions and available in the latest version. Pip is unaware of distribution installed version and will overwrite it if a module is a dependency and vice versa.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds