Pyenv – lets you easily switch between multiple versions of Python
11–20 of 341 posts
Re: Pyenv – lets you easily switch between multiple versions of Python
#12I have to warn again users that think they have found the silver bullet that pyenv comes with a big caveat: it compiles python on your machine. The number of possible modes of failure in this situation is huge. See also: "Why not tell people to "simply" use pyenv, poetry or anaconda" https://www.bitecode.dev/p/why-not-tell-people-to-simply-use I'm not saying pyenv is not a useful tool, but it is not a tool for beginn…
What is the alternative? Every solution that I know of on Linux requires you to build Python on the machine: asdf, official Python downloads, etc.
Re: Pyenv – lets you easily switch between multiple versions of Python
#13Is anyone is the AI/ML area finding success with anything other than conda, where installation of CUDA/CUDnn is required? Although I often have to pip install a lot of packages, I find conda's nvidia/pytorch/conda-forge channels are still by far the easiest way to get a deep learning stack up and running, and so I just stick with conda environments. I've tried poetry in the past but getting the NVidia deep learning s…
Re: Pyenv – lets you easily switch between multiple versions of Python
#14Is anyone is the AI/ML area finding success with anything other than conda, where installation of CUDA/CUDnn is required? Although I often have to pip install a lot of packages, I find conda's nvidia/pytorch/conda-forge channels are still by far the easiest way to get a deep learning stack up and running, and so I just stick with conda environments. I've tried poetry in the past but getting the NVidia deep learning s…
We make extensive use of conda/mamba to solve this, and are pretty happy with it, especially with conda-forge.
Re: Pyenv – lets you easily switch between multiple versions of Python
#15I thought the recommended approach these days was to use the venv package built in to python3 with `python3 -mvenv ...`
Re: Pyenv – lets you easily switch between multiple versions of Python
#16I thought the recommended approach these days was to use the venv package built in to python3 with `python3 -mvenv ...`
Pyenv allows you to use whatever version of Python you want.
Re: Pyenv – lets you easily switch between multiple versions of Python
#17Re: Pyenv – lets you easily switch between multiple versions of Python
#18Re: Pyenv – lets you easily switch between multiple versions of Python
#19I have to warn again users that think they have found the silver bullet that pyenv comes with a big caveat: it compiles python on your machine. The number of possible modes of failure in this situation is huge. See also: "Why not tell people to "simply" use pyenv, poetry or anaconda" https://www.bitecode.dev/p/why-not-tell-people-to-simply-use I'm not saying pyenv is not a useful tool, but it is not a tool for beginn…
> it compiles python on your machine What is the alternative? Every solution that I know of on Linux requires you to build Python on the machine: asdf, official Python downloads, etc.
I'll leave further discussion of the reliability and provenance of said binaries to someone else.
Re: Pyenv – lets you easily switch between multiple versions of Python
#20I have to warn again users that think they have found the silver bullet that pyenv comes with a big caveat: it compiles python on your machine. The number of possible modes of failure in this situation is huge. See also: "Why not tell people to "simply" use pyenv, poetry or anaconda" https://www.bitecode.dev/p/why-not-tell-people-to-simply-use I'm not saying pyenv is not a useful tool, but it is not a tool for beginn…
> it compiles python on your machine What is the alternative? Every solution that I know of on Linux requires you to build Python on the machine: asdf, official Python downloads, etc.
Using per-distro official installation channels.
E.g. using deadsnakes PPA on Ubuntu, AUR on Arch Linux, etc.