r/Python • • Oct 05 '20

News Python 3.9.0 final released

https://www.python.org/downloads/release/python-390/
1.1k Upvotes

157 comments sorted by

View all comments

144

u/[deleted] Oct 05 '20

Aaand here I'm stuck with 2.7 because root user doesn't want to deal with updating it, I can't even use keras

0

u/[deleted] Oct 05 '20

[deleted]

19

u/[deleted] Oct 05 '20

It's linux, does pyenv come with the default installation or does it require a separate one?

0

u/[deleted] Oct 05 '20

[deleted]

→ More replies (3)
→ More replies (4)

0

u/[deleted] Oct 06 '20

[deleted]

6

u/BooparinoBR Oct 06 '20

Why not use pip?

0

u/[deleted] Oct 06 '20

[deleted]

5

u/BooparinoBR Oct 06 '20

Thanks! I've always used pip and never had issues with it so I couldn't understand why use another package manager. But if at some point I find some issue I know where to look for ;)

3

u/aldanor Numpy, Pandas, Rust Oct 06 '20

It's not "another package manager", it's a separate build and packaging system. E.g., you can use conda for non-Python stuff like C binaries and libraries, or R packages. Where it shines generally is in being able to ship binary CPython/C extensions and libraries that are magically rpathed upon install so there's no building happening on the client host and things are just getting installed and work right off the bat.

→ More replies (2)
→ More replies (1)
→ More replies (2)

0

u/[deleted] Oct 05 '20

[deleted]

16

u/[deleted] Oct 05 '20

Would directly transfering the environment from my pc work? If so, I can finally be released from this misery after 13 months!

They reaallly don't want anyone else using installation commands, because apparently someone fucked up something years ago

9

u/[deleted] Oct 05 '20

Honestly, I'm to much of a python n00b to say for sure.

This site has some links that may prove helpful

3

u/[deleted] Oct 05 '20

Thanks anyway, gonna try this out tomorrow

7

u/wingtales Oct 05 '20

You can also install conda without admin rights. I can highly recommend it - install conda (miniconda is probably best here) and then create a new environment. You can keep it all local without sudo/admin rights!

2

u/[deleted] Oct 05 '20

Good luck!! :)

→ More replies (1)

32

u/andyf-71 Oct 05 '20

System wide Python is a good thing to avoid anyway. Use a virtual environment, such as pip and virtualenv for example.

14

u/[deleted] Oct 05 '20

That will only isolate Python packages. The binary you run is still the one installed system-wide. The alternative is really pyenv, or compiling Python yourself.

4

u/Hunterbunter Oct 05 '20

Can you replace the symbolic link with a file of your choosing?

4

u/scinaty2 Oct 06 '20

There is also conda

→ More replies (4)

4

u/[deleted] Oct 05 '20

Aii that's painfull. But why no upgrade tho, 2.7 has been dropped this year

6

u/[deleted] Oct 05 '20

He says that there are many codes running in the background that would have to be changed.. my best guess is it'll stay like that until the server dies. Can't go with venv too, since he doesn't wanna deal with it neither

22

u/[deleted] Oct 05 '20

That is just lazy and incompetent. He is building up technical debt and software rot. Such a shame....

5

u/RankWinner Oct 06 '20

I don't get that at all.

Installing Python 3 at the system level doesn't affect Python 2, or any of the legacy code. Python 2's executable is (usually) python, and Python 3 is python3, so you can have both installed along side each other.

Also, look into environment modules for providing and loading different software at different versions.

→ More replies (2)

4

u/fermilevel Oct 06 '20

Have you try using docker images?

→ More replies (1)
→ More replies (6)