Wednesday, May 17, 2017

PIP installation process & usefulness to Python

PIP is software installer. Follow the below mentioned procedure:


1. setup proxy

copy the proxy from internet explorer

set http_proxy=http://your_proxy:your_port
or
set http_proxy=http://username:password@your_proxy:your_port

set https_proxy=https://your_proxy:your_port
or
set https_proxy=https://username:password@your_proxy:your_port

once thi is done, you are done with setup to install softwares from internet via PIP

2. Install PIP..
$python get-pip.py

3. After this start installing using PIP
eg.
$pip install numpy
$pip install scipy

you can also install from the wheel file downloaded
eg.
$pip install setuptools-23.0.0-py2.py3-none-any.whl

----------------------------------------------------------------------------------------------

Why PIP is useful?
--> Because it downloads all the required dependancy for installing any particular piece of library

1 comment:

  1. In case your proxy setting is giving you a hard time, try this.

    pip install --proxy=localhost:3128 package name

    ReplyDelete

PROFILE

My photo
India
Design Engineer ( IFM Engineering Private Limited )

Followers