Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install torch-summary via python pip




torch-summary - Model summary in PyTorch, based off of the original torchsummary., it belongs to Classifiers:

- Programming Language :: Python :: 3 :: Only
- Programming Language :: Python :: 3.8
- Programming Language :: Python :: 3.9

When you know about this project and you want to new install torch-summary to support your project or you get trouble as ModuleNotFoundError: No module named "torch-summary" or ImportError: cannot import name "torch-summary" in your project, let follow this tutorial to install torch-summary



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_torch-summary_env

- Active the virtual environment

test_torch-summary_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_torch-summary_env

- Active the virtual environment

source test_torch-summary_env/bin/active


Step 2: OK, now, let flow below content to start the installation torch-summary

To install torch-summary on Windows(CMD):

py -m pip install torch-summary

To install torch-summary on Unix/macOs:

pip install torch-summary


Step 3: If you want to install a specific torch-summary version, add ==<torch-summary version> to the end command line

Example:

pip install torch-summary==1.0.0


Please see the version list below table:

VersionReleased dateCommand
torch-summary 1.4.52020-12-24T05:00:30Windows:

py -m pip install torch-summary==1.4.5

Unix/macOs:

pip install torch-summary==1.4.5

torch-summary 1.4.42020-12-24T02:18:59Windows:

py -m pip install torch-summary==1.4.4

Unix/macOs:

pip install torch-summary==1.4.4

torch-summary 1.4.32020-09-22T01:01:15Windows:

py -m pip install torch-summary==1.4.3

Unix/macOs:

pip install torch-summary==1.4.3

torch-summary 1.4.22020-08-24T07:24:42Windows:

py -m pip install torch-summary==1.4.2

Unix/macOs:

pip install torch-summary==1.4.2

torch-summary 1.4.12020-08-06T00:47:55Windows:

py -m pip install torch-summary==1.4.1

Unix/macOs:

pip install torch-summary==1.4.1

torch-summary 1.4.02020-07-19T18:13:37Windows:

py -m pip install torch-summary==1.4.0

Unix/macOs:

pip install torch-summary==1.4.0

torch-summary 1.3.32020-07-01T19:11:56Windows:

py -m pip install torch-summary==1.3.3

Unix/macOs:

pip install torch-summary==1.3.3

torch-summary 1.3.22020-05-29T06:48:12Windows:

py -m pip install torch-summary==1.3.2

Unix/macOs:

pip install torch-summary==1.3.2

torch-summary 1.3.12020-05-25T20:35:40Windows:

py -m pip install torch-summary==1.3.1

Unix/macOs:

pip install torch-summary==1.3.1

torch-summary 1.3.02020-05-21T05:08:27Windows:

py -m pip install torch-summary==1.3.0

Unix/macOs:

pip install torch-summary==1.3.0

torch-summary 1.2.02020-05-09T18:58:26Windows:

py -m pip install torch-summary==1.2.0

Unix/macOs:

pip install torch-summary==1.2.0

torch-summary 1.1.92020-05-07T17:14:39Windows:

py -m pip install torch-summary==1.1.9

Unix/macOs:

pip install torch-summary==1.1.9

torch-summary 1.1.82020-05-04T19:00:25Windows:

py -m pip install torch-summary==1.1.8

Unix/macOs:

pip install torch-summary==1.1.8

torch-summary 1.1.72020-04-29T04:25:56Windows:

py -m pip install torch-summary==1.1.7

Unix/macOs:

pip install torch-summary==1.1.7

torch-summary 1.1.62020-04-24T07:07:58Windows:

py -m pip install torch-summary==1.1.6

Unix/macOs:

pip install torch-summary==1.1.6

torch-summary 1.1.52020-04-19T20:44:21Windows:

py -m pip install torch-summary==1.1.5

Unix/macOs:

pip install torch-summary==1.1.5

torch-summary 1.1.42020-04-19T18:26:27Windows:

py -m pip install torch-summary==1.1.4

Unix/macOs:

pip install torch-summary==1.1.4

torch-summary 1.1.32020-04-17T18:29:10Windows:

py -m pip install torch-summary==1.1.3

Unix/macOs:

pip install torch-summary==1.1.3

torch-summary 1.1.22020-04-14T21:23:57Windows:

py -m pip install torch-summary==1.1.2

Unix/macOs:

pip install torch-summary==1.1.2

torch-summary 1.1.12020-04-08T04:32:55Windows:

py -m pip install torch-summary==1.1.1

Unix/macOs:

pip install torch-summary==1.1.1

torch-summary 1.1.02020-04-05T19:51:31Windows:

py -m pip install torch-summary==1.1.0

Unix/macOs:

pip install torch-summary==1.1.0

torch-summary 1.0.42020-03-23T05:14:13Windows:

py -m pip install torch-summary==1.0.4

Unix/macOs:

pip install torch-summary==1.0.4

torch-summary 1.0.32020-03-21T21:40:25Windows:

py -m pip install torch-summary==1.0.3

Unix/macOs:

pip install torch-summary==1.0.3

torch-summary 1.0.22020-03-20T07:42:40Windows:

py -m pip install torch-summary==1.0.2

Unix/macOs:

pip install torch-summary==1.0.2

torch-summary 1.0.12020-03-19T06:40:09Windows:

py -m pip install torch-summary==1.0.1

Unix/macOs:

pip install torch-summary==1.0.1

torch-summary 1.0.02020-03-19T06:06:29Windows:

py -m pip install torch-summary==1.0.0

Unix/macOs:

pip install torch-summary==1.0.0


Step 4: Otherwise, you can install torch-summary from local archives:

Download the distribution file from torch_summary-1.4.5.tar.gz or the specific torch-summary version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_torch-summary_downloaded_file>

On Unix/macOs:

pip install <path_to_torch-summary_downloaded_file>


List distribution:


Project link:

- Homepage