Skip to main content

Simple utility to install pytorch, pytorch-geometric and pytorch-lightning. Detects CUDA version automatically.

Project description

PyTorch Install Helper

Super basic helper to install pytorch stuff without having to check cuda versions and go to websites for the installer URLs.

Only Linux and macOS Supported

Detects what cuda version is available and runs the pip command to install latest pytorch and compatible cuda version

Installation

pip install torchinstaller

Usage

$ torchinstall -h
usage: torchinstall [-h] [--poetry] [--dryrun] [--pyg] [--lightning]

optional arguments:
  -h, --help       show this help message and exit
  --poetry, -p     Uses poetry for install. Creates a torch source and adds torch to pyproject.toml
  --dryrun, -d     just prints the commands that would be run
  --pyg, -pyg      Flag to also install pytorch-geometric
  --lightning, -l  Flag to also install pytorch-lightning

Note: poetry support is a work in-progress and is unstable

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torchinstaller-0.2.8.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

torchinstaller-0.2.8-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page