Python Forum
Any command to upgrade Python version 2.X to latest
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Any command to upgrade Python version 2.X to latest
#1
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?
Reply
#2
Go somewhere you can get access to download the latest version to a usb stick.
Install the new version from the memory stick.
Reply
#3
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?
Reply
#4
If you can't download anything, and you cant install anything, you can't update anything.
Reply
#5
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.
Reply
#6
(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?
Reply
#7
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
Reply
#8
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."
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Upgrade to python 3 opinion hokie1999 5 2,768 May-11-2021, 06:42 PM
Last Post: hokie1999
  Query on choosing Python 3.8.6 version sureshnagarajan 0 1,788 Feb-16-2021, 05:30 AM
Last Post: sureshnagarajan
  Which Python Version? muzikman 15 5,064 Jan-19-2021, 02:16 PM
Last Post: muzikman
  Python/winrt support for python 3.8 version pbvinoth 2 3,639 Jul-08-2020, 02:03 PM
Last Post: snippsat
  Issue with 2 version of python (2.6.6 and 2.7) with pip himupant94 2 3,187 Apr-24-2020, 03:23 AM
Last Post: himupant94
  Need help to upgrade Python 3.X Ritesh 3 3,699 Feb-18-2020, 04:06 AM
Last Post: Ritesh
  How to install the latest version of Python on RHEL 8? devlocalca 7 5,312 Feb-17-2020, 01:49 AM
Last Post: snippsat
  How should I upgrade python to 3.8.0? newbieAuggie2019 4 83,611 Oct-20-2019, 08:23 PM
Last Post: newbieAuggie2019
  my latest function Skaperen 2 1,919 Jun-08-2019, 08:23 AM
Last Post: Skaperen
  Default python version on Windows (3.6.x vs 3.6.y) gramakri 1 2,424 May-04-2019, 10:36 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020