Python Forum

Full Version: Any command to upgrade Python version 2.X to latest
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Go somewhere you can get access to download the latest version to a usb stick.
Install the new version from the memory stick.
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?
If you can't download anything, and you cant install anything, you can't update anything.
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.
(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?
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
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-cyberse...ity-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."