Tuesday, July 6, 2021

How To Use Python Pip

How To Use Python Pip

Before you read this tutorial, make sure you have latest Pip installed. To updgrade pip follow this tutorial https://www.nbshare.io/notebook/228803083/How-to-Upgrade-Python-PIP/

Pip Install Package

Let us say we want to install the package Scrapy

In [ ]:
pip install Scrapy

By default, pip will install the latest version of Package.

Pip check installed version of package.
In [2]:
pip show Scrapy
Name: Scrapy
Version: 2.5.0
Summary: A high-level Web Crawling and Web Scraping framework
Home-page: https://scrapy.org
Author: Scrapy developers
Author-email: None
License: BSD
Location: /home/abhiphull/anaconda3/envs/condapy36/lib/python3.6/site-packages
Requires: parsel, protego, itemloaders, service-identity, zope.interface, lxml, cryptography, pyOpenSSL, w3lib, itemadapter, h2, queuelib, PyDispatcher, Twisted, cssselect
Required-by: 
Pip find all available versions of package on PyPI

Let us say we want to find all the available packages of Scrapy on PyPi.

In [3]:
pip install Scrapy==
ERROR: Could not find a version that satisfies the requirement Scrapy== (from versions: 0.7, 0.8, 0.9, 0.10.4.2364, 0.12.0.2550, 0.14.1, 0.14.2, 0.14.3, 0.14.4, 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.16.4, 0.16.5, 0.18.0, 0.18.1, 0.18.2, 0.18.3,
(continued...)

from Planet SciPy
read more

No comments:

Post a Comment

TestDriven.io: Working with Static and Media Files in Django

This article looks at how to work with static and media files in a Django project, locally and in production. from Planet Python via read...