Python Forum
Any command to upgrade Python version 2.X to latest - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: Any command to upgrade Python version 2.X to latest (/thread-19159.html)



Any command to upgrade Python version 2.X to latest - KarthiK - Jun-15-2019

How can i update my python from version 2.0 something to 3.5 or 3.7 latest....Any command which can upgrade my python to the latest version? I'm in a environment where i cant download anything but i have existing one but need to upgrade to the latest version. Anyone can help ?Any command exists?


RE: Any command to upgrade Python version 2.X to latest - Yoriz - Jun-15-2019

Go somewhere you can get access to download the latest version to a usb stick.
Install the new version from the memory stick.


RE: Any command to upgrade Python version 2.X to latest - KarthiK - Jun-15-2019

Its a office environment so i cant carry USB sticks or even i take it, i cant use it on my machine...any one liners command? to upgrade python old ver to latest?


RE: Any command to upgrade Python version 2.X to latest - Yoriz - Jun-15-2019

If you can't download anything, and you cant install anything, you can't update anything.


RE: Any command to upgrade Python version 2.X to latest - snippsat - Jun-15-2019

Look at this post.
So with Cloud9 can run full environment in browser.
This by pass all admin privileges on OS,as all run in browser.
Anaconda/miniconda is a stand alone distribution,so can run from usb stick or just copy folder over to OS.


RE: Any command to upgrade Python version 2.X to latest - ThomasL - Jun-15-2019

(Jun-15-2019, 05:35 PM)KarthiK Wrote: Its a office environment so i cant carry USB sticks or even i take it, i cant use it on my machine...any one liners command? to upgrade python old ver to latest?
What kind of magical "Simsalabim" command do you think about that is possible to install Python out of the air?


RE: Any command to upgrade Python version 2.X to latest - Ritesh - Feb-15-2020

Hello,

I am also looking something like apt-get update or something PPA update with soft link commands to replace Python 2.X with Python 3.X with installed pip modules as well.

If anyone knows about that then it will be very useful for us to upgrade into existing build system.

Regards,
Ritesh Prajapati


RE: Any command to upgrade Python version 2.X to latest - DeaD_EyE - Feb-15-2020

On Linux (Debian, Raspbian, Mint, Ubuntu):
apt-get update; apt-get install python3
Mint an Ubtuntu should support Python 3.7 I think.
On Raspbian Buster Python 3.7 is the current release.
I know this, because I'm working with it :-)

On Windows 10:
Open the Windows App-Store, search for Python, install it.



If you're not allowed to carry USB-Sticks into your company and your PC has no access to internet, you can't install Python.
Very simple. If you require the latest Python for your work, ask you boss. Tell your boss, that Python 2.7 is outdated and dangerous.
If he ask why this could be dangerous, give him this link: https://www.zdnet.com/article/uk-cybersecurity-agency-warns-devs-to-drop-python-2-due-to-looming-eol-security-risks/

Quote:"If you're still using 2.x, it's time to port your code to Python 3," the NCSC said. "If you continue to use unsupported modules, you are risking the security of your organisation and data, as vulnerabilities will sooner or later appear which nobody is fixing."