Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Differences between download a library form PyPi and CLI

What is the difference between directly downloading flask-3.0.3.tar.gz or
flask-3.0.3-py3-none-any.whl from https://pypi.org/ and run the command pip install flask?

I tried to download some libraries but I don’t undestand if it does not matter the way I download these libraries.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

If you have internet connectivity then the simplest option is to use pip install flask

.whl files are Build files. If you want to perform an offline installation then copy the wheel file and install it using that.

pip install filename.whl

.tar.gz contains the source code, examples, docs for the library.

unzip the files and change to that directory

python setup.py install

.tar.gz option is used where .whl binary files are not allowed.

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading