{"id":31566240,"url":"https://github.com/a-nau/python-cuda-envs","last_synced_at":"2026-04-18T01:31:32.856Z","repository":{"id":45737594,"uuid":"514283031","full_name":"a-nau/python-cuda-envs","owner":"a-nau","description":"Script to automatically map a specific CUDA version to a Conda Python environment.","archived":false,"fork":false,"pushed_at":"2022-07-15T14:24:00.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-06T13:33:44.116Z","etag":null,"topics":["anaconda","anaconda-environment","cuda","installation","installation-script","python","python-environment","python3"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a-nau.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-15T13:39:39.000Z","updated_at":"2023-01-31T14:57:40.000Z","dependencies_parsed_at":"2022-07-22T00:46:57.360Z","dependency_job_id":null,"html_url":"https://github.com/a-nau/python-cuda-envs","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/a-nau/python-cuda-envs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-nau%2Fpython-cuda-envs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-nau%2Fpython-cuda-envs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-nau%2Fpython-cuda-envs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-nau%2Fpython-cuda-envs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-nau","download_url":"https://codeload.github.com/a-nau/python-cuda-envs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-nau%2Fpython-cuda-envs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278424897,"owners_count":25984679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anaconda","anaconda-environment","cuda","installation","installation-script","python","python-environment","python3"],"created_at":"2025-10-05T07:27:24.702Z","updated_at":"2025-10-05T07:27:26.878Z","avatar_url":"https://github.com/a-nau.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Environments for Deep Learning\n\nHaving specific (and varying) CUDA version for your Python environments can be tricky.\nConda allows you to do just that and this install script automatizes the process for you.\n\nWe exemplarily show how to use the script with CUDA 11.1 and install [PyTorch](https://github.com/pytorch/pytorch), [PyTorch3D](https://github.com/facebookresearch/pytorch3d) and [Detectron2](https://github.com/facebookresearch/detectron2).\n\n## Usage\n\nInstall environment from the root directory using\n\n```shell\nsource pytorch3d/install_environment.sh\n```\n\nYou can configure the following easily\n\n- name of the conda environment\n- CUDA version you want to use\n- Python version\n\nin the [install_environment.sh](pytorch3d/install_environment.sh)\n\n```shell\n#!/bin/bash\n\n# Configuration\nenv_name=pytorch3d                         # set environment name here\ncustom_cuda_version=cuda-11.1              # set CUDA version here\n\n# Setting up basic conda environment\nconda activate base\nconda env remove --name ${env_name}\nconda create -y -n ${env_name} python=3.9  # set Python version here\n[...]\n```\n\nAfter install perform an [automated check](pytorch3d/environment_check.sh) if all crucial libraries are imported correctly.\n\n**Note**\n- The default CUDA installation path is `/usr/local/`, you can change it [here](utils/activate.sh#L8) (Line 8). The final CUDA path that is linked is then `/user/local/{custom_cuda_version}`.\n- The default conda envs path is `~/anaconda3/envs`, you can change it [here](utils/copy_activation_files.sh#L3) (Line 3).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-nau%2Fpython-cuda-envs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-nau%2Fpython-cuda-envs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-nau%2Fpython-cuda-envs/lists"}