Which Python Virtual Environment Should You Use?

Which Python Virtual Environment Should You Use?

ArjanCodes

1 год назад

13,183 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

AceofSpades5757
AceofSpades5757 - 21.02.2023 13:05

I've found virtualenv to be superior to alternatives. There's a couple of edge cases that venv doesn't cover. Poetry has issues integrating with other tools and has an opinionated setup. Pipenv is a coin flip on whether or not it's gonna break the next time you update it and it's had a ton of bugs.

Ответить
Angie H
Angie H - 06.02.2023 08:57

Arjan thank you so much for this!!

I asked you this very question a couple of days ago!!

I will check out poetry.

I do use venv, but I wasn’t sure what other people use as that was something I stumbled on.

Docker is also on my to-do list and I’m sure I’ll get to it at some point.

Ответить
Lowkey Gaming
Lowkey Gaming - 05.02.2023 15:24

I came from venv then had to move to anaconda when I switched to mac and now docker. You're right. It reduces the redundancy since I can already set the nginx in docker too.

Ответить
Tipan Verella
Tipan Verella - 05.02.2023 05:11

Could you please do a full episode on poetry? In particular about using it in conjunction with conda and getting your IDE to understand the full setup.

Ответить
THE Mithrandir09
THE Mithrandir09 - 05.02.2023 04:47

Peotry doesn't really solve running multiple python versions, so docker is the way to go for me. Also cleaning up your dev environment is easier with docker.

Ответить
devmishra18
devmishra18 - 05.02.2023 00:47

I watched the docker video by you which is great, but it would be nice to see more examples of docker with python in the future videos. Thank you!

Ответить
Rastow
Rastow - 05.02.2023 00:08

Hatch is an amazing python packaging tool which has a great environment management system. I can only recommend taking a look! Getting started is super easy and everything is very intuitiv.

Ответить
Jeba
Jeba - 04.02.2023 21:50

i really think the target audience vs the subject matter is in stark contrast here. people usually watch shorts for entertainment and even if you have people trying to learn from shorts, this kind of stuff is probably way too high level for them and needs more explanation

Ответить
Hugh's Django Vlog
Hugh's Django Vlog - 04.02.2023 20:38

Conda was what I was trained on, but I moved to venv. Would love to see a docker example/tutorial.

Ответить
Walter H
Walter H - 04.02.2023 20:03

this should be a whole video, not a short! More on topic, though, at my company (one of the biggest in the NL), we use poetry mainly for its ability to solve the version interdependency hell that is managing requirements.txt manually. No more conflicting version numbers - just have poetry figure it out for you. Highly recommended.

Ответить
Thiago Sanna Freire Silva
Thiago Sanna Freire Silva - 04.02.2023 19:46

No love for conda?

Ответить
deez_tricks
deez_tricks - 04.02.2023 19:42

From my humble experience, if you are in scientific computing miniconda saves tons of time due to its ability pull from its registry compiled linear programming solvers, ML frameworks writen in C out of the box. Packages from Pypi for the same modules are usually just wrappers expect you to have the binaries pre-installed and in your path, which is quite hard for a junior data scientist or analyst to wrap their head around.

Ответить
Philipp Schreiber
Philipp Schreiber - 04.02.2023 19:24

How do you usually develop inside a container? (That’s what you mean by using Docker, right?) :) in the past I’ve tried that with VS code, but the connection often crashed :/ could you maybe do a short on that? :)

Ответить
Kamil
Kamil - 04.02.2023 19:17

Maybe time for video about virtual env? :) It would be interested.

Ответить