Python library & how to install

All about Phyton programming, not the snake
Post Reply
User avatar
amh
Site Admin
Posts: 263
Joined: Thu Jan 06, 2022 12:35 am

Python library & how to install

Post by amh »

1. Pandas
Pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language.

Installation

Code: Select all

pip install pandas


Verification

Code: Select all

pip show pandas
import

Code: Select all

import pandas
2. Matplotlib
Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python. Matplotlib makes easy things easy and hard things possible.

installation

Code: Select all

pip install matplotlib
import

Code: Select all

import matplotlib
3. Scikit-learn

Simple and efficient tools for predictive data analysis

Code: Select all

pip install -U scikit-learn
4. Numpy
For viewing and editing two or three dimensional arrays in the Variable Explorer

conda

Code: Select all

# Best practice, use an environment rather than install in the base env
conda create -n my-env
conda activate my-env
# If you want to install from conda-forge
conda config --env --add channels conda-forge
# The actual install command
conda install numpy
pip

Code: Select all

pip install numpy
5. Sympy

SymPy is a Python library for symbolic mathematics

Conda

Code: Select all

conda update sympy
PIP

Code: Select all

pip install sympy
User avatar
amh
Site Admin
Posts: 263
Joined: Thu Jan 06, 2022 12:35 am

Post by amh »

6. Tensorflow

Create production-grade machine learning models

install pip

Code: Select all

# For GPU users
pip install tensorflow[and-cuda]
# For CPU users
pip install tensorflow
verify cpu setup

Code: Select all

python3 -c "import tensorflow as tf; print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
verify gpu setup

Code: Select all

python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"

conda cpu

Code: Select all

conda create -n tf tensorflow
conda activate tf
conda gpu

Code: Select all

conda create -n tf-gpu tensorflow-gpu
conda activate tf-gpu

7. Seaborn

Seaborn is a Python data visualization library based on matplotlib. It provides a high-level interface for drawing attractive and informative statistical graphics.

PIP

Code: Select all

pip install seaborn
Conda

Code: Select all

conda install seaborn
Post Reply