Skip to main content

Posts

Showing posts with the label pip

How to install python pip

Install pip using get-pip.py 1. If you haven't installed python already: $ sudo add-apt-repository ppa:deadsnakes/ppa $ sudo apt-get update $ sudo apt-get install python3.6 2.   Get a copy of get-pip.py 2.1. The download will start automatically 2.2.  Navigate to the download folder in your terminal 2.3. Open terminal from here 2.4. Run $ python get-pip.py 3. That's it! Now you can easily install python packages. Examples: $ pip install jupyter $ pip install django==2.0 Install pip using python3 setuptools 1. Install setuptools on your linux machine $ sudo apt-get install python3-setuptools 2. Install pip using easy-install $ python -m easy-install pip Bonus If you get "$ error: command 'x86_64-linux-gnu-gcc' failed with exit status 1" Run the following: $ sudo apt-get update $ sudo apt-get install python3-dev $ sudo apt-get install python-dev $ sudo pip install jupyter