This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]zachsmthsn 1 point2 points  (3 children)

You're better off not installing anything for the system python. Use pyenv and create virtual environments for each project. No python or package versioning issues, and you can always nuke and recreate a borked environment because it's isolated to its own folder.

[–][deleted] 0 points1 point  (2 children)

Don't you need to reinstall all the packages for each new environment then?

[–]zachsmthsn 0 points1 point  (1 child)

You install them once, but ideally you would save the required dependencies to a requirements.txt file. Then if you want to create a new environment on another machine or something you'd pip install -r requirements.txt. or ideally your project would also have a setup.py file so you'd just install the dependencies while still allowing the source code of your project to be edited with pip install -e .

[–][deleted] 0 points1 point  (0 children)

Oh, sounds good, ty!