I'm trying to figure out the best way to use an older version of Python for a specific project or directory on Arch Linux. I need it specifically for the pyicloud and pyicloud-ipd libraries. I've attempted to use pyenv, but I haven't been able to get it working properly. Any suggestions?
4 Answers
If you're dealing with very old Python versions and need to distribute your project, consider using PyInstaller. It bundles everything into a single executable, which is great for getting older projects running on newer systems without any hassle.
I recommend using UV. It's really straightforward once you get the hang of it. It makes switching between Python versions easy, especially for isolated projects. You should give it a try!
As others mentioned, UV is definitely the way to go for most cases. But if you're looking for something that supports even more obscure versions like Python 2.7, then pyenv might be worth checking out. Just remember, it compiles from source, so you'll need the right build dependencies.
Have you checked out UV from astral.sh? It's recommended for managing multiple Python versions easily. Just follow their guide and you should be set up in no time!
Yeah, I’ve used UV for a while now and it really simplifies version management!