- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to use pip to install python modules in easy way?
If you have Python 2 >=2.7.9 or Python 3 >=3.4 installed from python.org, you will already have pip and setuptools, but will need to upgrade to the latest version:
On Linux or macOS:
pip install -U pip setuptools
python -m pip install -U pip setuptools
If you’re using a Python install on Linux that’s managed by the system package manager (e.g "yum", "apt-get" etc…), and you want to use the system package manager to install or upgrade pip, then see: https://packaging.python.org/guides/installing-using-linux-tools/
Download get-pip.py from https://bootstrap.pypa.io/get-pip.py. Run python get-pip.py. This will install or upgrade pip.
Now you can use pip to install python packages. For example, To install the latest version of "SomeProject":
$ pip install 'SomeProject'
To install a specific version:
$ pip install 'SomeProject==1.4'
To install greater than or equal to one version and less than another:
$ pip install 'SomeProject>=1,<2'
- How to install Python MySQLdb module using pip?
- How do we use easy_install to install Python modules?
- How to install Python modules in Cygwin?
- What is the most compatible way to install python modules on a Mac?
- How to install python modules without root access?
- How to install a Python package into a different directory using pip?
- How to install python modules and their dependencies easily?
- How to Install two python modules with same name?
- How to install and import Python modules at runtime?
- How to install libxml2 with python modules on Mac?
- How to use remote python modules?
- How will you explain Python namespaces in easy way?
- Easy way to re-order columns in MySQL?
- How to use Python modules over Paramiko (SSH)?
- How to use pip or easy_install Tkinter on Windows?