Refresh

This website danillolima.com/en/python/printing-and-installing-specific-versions-of-python-libraries/ is currently offline. Cloudflare's Always Online™ shows a snapshot of this web page from the Internet Archive's Wayback Machine. To check for the live version, click Refresh.

Printing and Installing Specific Versions of Python Libraries

Print the number of version of a installed library:

# Syntax: LIBRARY_NAME.__version__ Examples:
pandas.__version__
scipy.__version__

To install a specific version of a library:

# Syntax: !pip install LIBRARY_NAME=='0.0.0' Examples:
!pip install pandas=='0.21.0'
!pip install scipy=='1.1.0'

Leave a Reply

Your email address will not be published. Required fields are marked *