12/20/2023 0 Comments Upgrade python centosPython 2.7.6ĭownloads Python-2.7.6.tar.xz and builds it. Here, we simply add a repository that has the pre-compiled version ready for us to install. This is the easier method of the two for installing Python on your machine. Tweak the version as you wish since newer versions will become available after this is posted. Method 1: Install Python 3.6.4 on CentOS 7 From a Repository. Here is how to upgrade python on CentOS for both 2.7 and 3.3. Typically this will be version 2.6, so even to run 2.7.6 you will need to build from source, but can still leverage yum to fetch all the dev tools you’ll need to build upgraded version of python. Use the virutal env.: source ~/virtualenv-1.9/virtalenv_name/bin/activateĭisconnect from the virtual env.The version of python that is distributed with CentOS is the same of that for RHEL, which reads as not cutting edge. Install the virtual environment for the local python: ~/.localpython/bin/virtualenv setup.py installĬreate a virtual environement using the local installation: virtualenv virtalenv_name -p /home//.localpython/bin/python2.7 Move inside the directory: cd virtualenv-1.9/ Uncompress the folder: tar -zxvf virtualenv-1.9.tar.gz ![]() Move inside the directory: cd Python-2.7.7Ĭreate the destination folder: mkdir ~/.localpython Uncompress the folder: tar -zxvf Python-2.7.7.tar.gz ![]() ![]() If for any reasons, you would like to have a local installation of Python in your home directory independently from the system, here are the steps to follow: Install Python We recommend to contact your server administrator to setup Python’s virtual environment on the server. Computing Installation of Python in your home directory (without sudo rights)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |