Skip to main content

How to upgrade python in ubuntu ?

To upgrade your python version in Ubuntu 18.10 Following these steps:

omprakash@omprakash:~$ sudo apt-get install python3.7
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  python3.7-minimal
Suggested packages:
  python3.7-venv python3.7-doc binfmt-support
The following NEW packages will be installed:
  python3.7 python3.7-minimal
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,944 kB of archives.
After this operation, 10.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu cosmic-updates/main amd64 python3.7-minimal amd64 3.7.3-2~18.10 [1,660 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu cosmic-updates/main amd64 python3.7 amd64 3.7.3-2~18.10 [284 kB]
Fetched 1,944 kB in 12s (164 kB/s)                                            
Selecting previously unselected package python3.7-minimal.
(Reading database ... 223188 files and directories currently installed.)
Preparing to unpack .../python3.7-minimal_3.7.3-2~18.10_amd64.deb ...
Unpacking python3.7-minimal (3.7.3-2~18.10) ...
Selecting previously unselected package python3.7.
Preparing to unpack .../python3.7_3.7.3-2~18.10_amd64.deb ...
Unpacking python3.7 (3.7.3-2~18.10) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-3ubuntu3) ...
Setting up python3.7-minimal (3.7.3-2~18.10) ...
Processing triggers for man-db (2.8.4-2) ...
Setting up python3.7 (3.7.3-2~18.10) ...
omprakash@omprakash:~$ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
update-alternatives: using /usr/bin/python3.6 to provide /usr/bin/python3 (python3) in auto mode
omprakash@omprakash:~$ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 2
update-alternatives: using /usr/bin/python3.7 to provide /usr/bin/python3 (python3) in auto mode
omprakash@omprakash:~$ sudo update-alternatives --config python3
There are 2 choices for the alternative python3 (providing /usr/bin/python3).

  Selection    Path                Priority   Status
------------------------------------------------------------
* 0            /usr/bin/python3.7   2         auto mode
  1            /usr/bin/python3.6   1         manual mode
  2            /usr/bin/python3.7   2         manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
omprakash@omprakash:~$ python3 -V
Python 3.7.3
omprakash@omprakash:~$ python2 -V
Python 2.7.16

 Congratulation your python will be upgrade!

Comments

Popular posts from this blog

The Seven-Step Model of Migration

Irrespective of the migration approach adopted, the Seven-step Model of Cloud Migration creates a more rational point of view towards the migration process and offers the ability to imbibe several best practices throughout the journey Step 1: Assess Cloud migration assessments are conducted to understand the complexities in the migration process at the code, design and architectural levels. The investment and the recurring costs are also evaluated along with gauging the tools, test cases, functionalities and other features related to the configuration. Step 2: Isolate The applications to be migrated to the cloud from the internal data center are freed of dependencies pertaining to the environment and the existing system. This step cuts a clearer picture about the complexity of the migration process. Step 3: Map Most organisations hold a detailed mapping of their environment with all the systems and applications. This information can be used to distinguish between the ...

Cloud Computing architecture

Cloud computing architecture refers to all components and sub-components that together form the structure of the cloud computing system. This architecture can be divided into three parts for better understanding – front end, back end and middleware. Each part of the cloud architecture has its own set of functionalities and protocols that work together to deliver on-demand services to user-facing hardware as well as software. In general, the architecture is evolved out of large distributed network applications over the last two decades. Hence it supports any system where resources can be pooled and partitioned as required. The general cloud architecture is capable of running multiple software applications running on multiple virtual hardware in multiple locations to efficiently render on-demand services to the users. The users could be using these software applications from their desktop or laptop or mobile or tablets. Usually, whatever the user is looking at – through t...

connection oriented

connection-oriented:- connection-oriented  describes a means of transmitting data in which the devices at the end points use a preliminary  protocol  to establish an end-to-end connection before any data is sent. Connection-oriented protocol service is sometimes called a "reliable" network service, because it guarantees that data will arrive in the proper sequence. Transmission Control Protocol ( TCP ) is a connection-oriented protocol. For connection-oriented communications, each end point must be able to transmit so that it can communicate. The alternative to connection-oriented transmission is the  connection-less  approach, in which data is sent from one end point to another without prior arrangement. Connection-less protocols are usually described as  stateless  because the end points have no protocol-defined way to remember where they are in a "conversation" of message exchanges. Because they can keep track of a conversation, connection-or...

tag