How to migrate Python

Know about  migration of python version from python2.x to pyhton3.x  on Windows as well as on Linux.

 Python Migration on Windows

Python Installation steps to follow on windows:-

  • Download python3.x in system.
  • Set path in PythonHome and PythonPath variable.
  • Run all the packages related to python.

In AWS Machine - Python 2.x is in-built, can not be uninstall.

 Python Migration on Linux
  • Run python3.x script on server.

  • Python3.x will be downloaded inside desired path.

  • Update symbolic link to the required path by using following command:

                ln -s /opt/source folder /user/bin/Destination Folder

                 .Source Folder- Path where python3.x has downloaded after running shell script of python.

                 .Destination Folder - Path where python3.x needs to be update to run python globally.

                       Example:  ln -s /opt/py3/Python-3.7.4/python /usr/bin/python3

               

Back to Top

©2021 Cognizant, all rights reserved. US Patent 10,410,152