Re:Nvidia announces Jetson Nano 2GB, a single board computer
by TYPE_FASTER on Monday October 05, 2020 @12:41PM
(#24689364)
I like to use pyenv for this purpose, as it "virtualizes" Python versions by installing them locally as you mention. Then you just point each virtualenv at the Python binary for the version installed via pyenv. pyenv + virtualenv + virtualenvwrapper have greatly reduced Python dependency issues for me.
[ Parent
| on HN ]
Re:Nvidia announces Jetson Nano 2GB, a single board computer
by giancarlostoro on Monday October 05, 2020 @12:51PM
(#24689479)
A bunch of programming languages do a little bit similar like Node has Node Version Manager or nvm, I think Go has GVM, Rust just has Rust Up, they usually install in your home folder and let you swap between versions globally, I've yet to have to do this as I usually spin up a VM if I know I'm going to need to deploy to a very specific version of Debian / Ubuntu, a virtual environment might not match behavior on the actual target system but a VM definitely will.
Re:Nvidia announces Jetson Nano 2GB, a single board computer
by fidelramos on Monday October 05, 2020 @01:10PM
(#24689685)
+1 to pyenv. And it's even better if you combine it with pipenv [1]: pipenv manages dependencies its own file (Pipfile) which can also specify the required Python version. Pipenv integrates with pyenv so if the required Python version is not available it will offer to download and install it.
Tldr; with pyenv and pipenv installing a Python project is just "pipenv install".
Re:Nvidia announces Jetson Nano 2GB, a single board computer
by strbean on Monday October 05, 2020 @02:31PM
(#24690545)
I would strongly recommend taking a look at Poetry as an alternative to Pipenv.
Pipenv is honestly a nightmare.
Re:Nvidia announces Jetson Nano 2GB, a single board computer
by fidelramos on Friday October 09, 2020 @04:43AM
(#24728016)
I have been using pipenv only on a couple of projects and for a few months, but it has been an improvement over pip and virtualenv.
Why do you say Pipenv is a nightmare? Have you had bad experiences with it?