Printing and Installing Specific Versions of Python Libraries

Print the number of version of a installed library:

# Syntax: LIBRARY_NAME.__version__ Examples:

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 *