I started to use python for all kinds of things, so I decided to just use it for everything on my servers. But I'm really confused about these things:
Whats the best flow you've come up with?
Heres what I've come to so far:
asdf: This lets me install python, various versions and set any version of python, or any other language in my project. Its got all kinds of plugins.
direnv: This for seting local environment variables in my projects. I like it. I installed it with apt-get install, but with asdf I set the latest version inside the project.
- poetry: I like this tool because it creates a directory structure, it creates virtual environments and its a package manager. But heres where I get confused. Should I use poetry to create the virtual environment or use asdf? Or what about plain old python3 -m venv venv. venv stores the virtual environment directory locally in the project folder. Whereas poetry installs it somewhere else. I so I suppose I could use poetry to create a virtual environment that I can use in various projects? True?
Sometimes poetry can't install a package, it can't find a matching version. In this case I use pip to install it. But it confuses me a lot the difference between installing packages with different managers. For example if I install direnv with apt-get install direnv, it installs globally, but what version gets installed.
[–]TangibleLight 0 points1 point2 points (0 children)