Also, using virtualenv poses a challenge as well. If your system has Python 2 installed you can install pip for Python 2 by below steps: Step 01: First update package list in your CentOS repository using the following command: yum install epel-release sudo yum update. Also keep in mind that using SCL outside a shell (e.g., cronjobs) isn't quite straightforward. NOTE: if your username doesn't require root to install software, then LD_LIBRARY_PATH and PATH is set up for you automatically by scl. Once installed, you can install PIP using pip2.7, e.g.: sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH. To install additional libraries, you will need to install PIP: cd /opt/rh/python27/root/usr/bin/ # cd to the directory where SCL installs python Instructions for getting boto on a different python version (e.g. Asking for help, clarification, or responding to other answers. Install Python 2.7( or 3.3) on CentOS 6.x, install PIP, and boto (python sdk for AWS IaaC work) - CentOS comes with python 2.6. To use it, you essentially spawn another shell (or script) while enabling the newer version of Python: scl enable python27 bash Thanks for contributing an answer to Unix & Linux Stack Exchange Please be sure to answer the question.Provide details and share your research But avoid. Be careful not to replace it or bad things will happen. sudo rpm -query centos-release .2.x8664 sudo yum install tkinter.
Sudo yum install python27 # install Python 2.7 Installing python 2.7 on centos 6.7: Follow this sequence exactly for centos machine only CentOS 6.7 ships with Python 2.6.6 and depends on that specific version. I have installed tkinter package but the default Python (which is version 2.7) on CentOS 7 still complains that this package doesnt exist.
Centos 7 install pip for python 2.7 how to#
In this article, I will show you how to install Python 2 PIP and Python 3 PIP on CentOS 7. Sudo yum install centos-release-scl # install SCL Python PIP is a package manager for Python, just like Yum is a package manager for CentOS 7 and RHEL 7.
Fortunately, CentOS made this quite painless with their Software Collections Repository sudo yum update # update yum Centos 6.* comes with Python 2.6, but we can't just replace it with v2.7 because it's used by the OS internally (apparently) so you will need to install v2.7 (or 3.x, for that matter) along with it.