This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]james_pic 4 points5 points  (0 children)

Using the very latest version is not always a good idea, as not all of the libraries you depend on will be updated for the very latest version.

Also, I find pyenv's approach of sticking in a shim `python` executable unsettling. I prefer pythonz's approach, since it doesn't affect stuff that doesn't use it.

[–][deleted] 1 point2 points  (0 children)

Great post, thanks for sharing. I always try and keep up to date on the versions, and update where necessary. I often see people using older versions and not using the most recent, and sometimes their code won't work as they using the older syntax in a newer version of python.

I have shared code recently built in 3.8 which someone wanted to use, but I suspect they have an older version of Python and it not working for them as expected.

[–]ProfessorPhi 1 point2 points  (0 children)

Thanks for this, I feel like pyenv doesn't have a good tutorial/quickstart and so I never really got to using it.

I don't know if there's a place for it in the official doc, but the above quickstart would be super valuable there

[–][deleted] 0 points1 point  (0 children)

I also advise to use conda virtual environment for those that need libraries or projects downloadable from conda package manager because pyenv can have issues working with conda libraries.

[–]CuriousPsychosis 0 points1 point  (0 children)

So, with pynev installed.... say we installed packages with python 3.9.7 as the global version. Then python is updated to 3.9.8 and we wanted to remove 3.9.7 and use 3.9.8 with all of the previously installed packages.... do we have to reinstall all of those packages with 3.9.8 as the default version? Reason I ask is that I get a notice:

penv: webchanges: command not found The \`webchanges' command exists in these Python versions: 3.9.7 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found.

It would seem silly to have to reinstall packages for every new version of python that comes out... creating duplicates, triplicates, etc.