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/
Let us say we want to install the package Scrapy
pip install Scrapy
By default, pip will install the latest version of Package.
pip show Scrapy
Let us say we want to find all the available packages of Scrapy on PyPi.
pip install Scrapy==
As we see above, pip lists all the available packages, if we put '==' at the end of package name.
To Install a specfic package, just put the version name after the '==' sign as shown below.
To Install Scrapy version 2.4.1, execute following command.
pip install Scrapy==2.4.1
To Uninstall package just type 'pip uninstall ' as shown below.
pip uninstall Scrapy
Found existing installation: Scrapy 2.5.0
Uninstalling Scrapy-2.5.0:
Would remove:
/home/anaconda3/envs/py39/bin/scrapy
/home/anaconda3/envs/py39/lib/python3.9/site-packages/Scrapy-2.5.0.dist-info/*
/home/anaconda3/envs/py39/lib/python3.9/site-packages/scrapy/*
Proceed (y/n)?
As shown above, pip will prompt for (y/n). Press 'y' if you want to uninstall the Python package.
from Planet Python
via read more
No comments:
Post a Comment