PyTorch scripts not on PATH

I am trying to install PyTorch for ComfyUI. I just uninstalled it and reinstalled it because I thought it didn’t work. Now, so far it works because I checked with the torch commands in the “get started” page and it connects to CUDA too. But I am worried because it seems that some scripts are not on PATH. Here is the full installation log:

PS C:\Users\Luis> pip install torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0 --index-url https://download.pytorch.org/whl/cu126
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://download.pytorch.org/whl/cu126
Collecting torch==2.6.0
  Downloading https://download.pytorch.org/whl/cu126/torch-2.6.0%2Bcu126-cp313-cp313-win_amd64.whl.metadata (28 kB)
Collecting torchvision==0.21.0
  Downloading https://download.pytorch.org/whl/cu126/torchvision-0.21.0%2Bcu126-cp313-cp313-win_amd64.whl.metadata (6.3 kB)
Collecting torchaudio==2.6.0
  Downloading https://download.pytorch.org/whl/cu126/torchaudio-2.6.0%2Bcu126-cp313-cp313-win_amd64.whl.metadata (6.8 kB)
Requirement already satisfied: filelock in c:\users\luis\appdata\roaming\python\python313\site-packages (from torch==2.6.0) (3.19.1)
Requirement already satisfied: typing-extensions>=4.10.0 in c:\users\luis\appdata\roaming\python\python313\site-packages (from torch==2.6.0) (4.14.1)
Requirement already satisfied: networkx in c:\users\luis\appdata\roaming\python\python313\site-packages (from torch==2.6.0) (3.5)
Requirement already satisfied: jinja2 in c:\users\luis\appdata\roaming\python\python313\site-packages (from torch==2.6.0) (3.1.6)
Requirement already satisfied: fsspec in c:\users\luis\appdata\roaming\python\python313\site-packages (from torch==2.6.0) (2025.7.0)
Requirement already satisfied: setuptools in c:\users\luis\appdata\roaming\python\python313\site-packages (from torch==2.6.0) (78.1.0)
Collecting sympy==1.13.1 (from torch==2.6.0)
  Downloading https://download.pytorch.org/whl/sympy-1.13.1-py3-none-any.whl (6.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.2/6.2 MB 7.1 MB/s  0:00:00
Requirement already satisfied: numpy in c:\users\luis\appdata\roaming\python\python313\site-packages (from torchvision==0.21.0) (2.3.2)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in c:\users\luis\appdata\roaming\python\python313\site-packages (from torchvision==0.21.0) (11.3.0)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in c:\users\luis\appdata\roaming\python\python313\site-packages (from sympy==1.13.1->torch==2.6.0) (1.3.0)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\luis\appdata\roaming\python\python313\site-packages (from jinja2->torch==2.6.0) (3.0.2)
Downloading https://download.pytorch.org/whl/cu126/torch-2.6.0%2Bcu126-cp313-cp313-win_amd64.whl (2496.1 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 GB 12.1 MB/s  0:01:23
Downloading https://download.pytorch.org/whl/cu126/torchvision-0.21.0%2Bcu126-cp313-cp313-win_amd64.whl (6.1 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.1/6.1 MB 14.8 MB/s  0:00:00
Downloading https://download.pytorch.org/whl/cu126/torchaudio-2.6.0%2Bcu126-cp313-cp313-win_amd64.whl (4.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.2/4.2 MB 14.1 MB/s  0:00:00
Installing collected packages: sympy, torch, torchvision, torchaudio
  Attempting uninstall: sympy
    Found existing installation: sympy 1.14.0
    Uninstalling sympy-1.14.0:
      Successfully uninstalled sympy-1.14.0
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0/4 [sympy]  WARNING: The script isympy.exe is installed in 'C:\Users\Luis\AppData\Roaming\Python\Python313\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
   ━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1/4 [torch]  WARNING: The scripts torchfrtrace.exe and torchrun.exe are installed in 'C:\Users\Luis\AppData\Roaming\Python\Python313\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  Attempting uninstall: torchvision
    Found existing installation: torchvision 0.24.0.dev20250901+cu129
    Uninstalling torchvision-0.24.0.dev20250901+cu129:
      Successfully uninstalled torchvision-0.24.0.dev20250901+cu129
  Attempting uninstall: torchaudio
    Found existing installation: torchaudio 2.8.0.dev20250901+cu129
    Uninstalling torchaudio-2.8.0.dev20250901+cu129:
      Successfully uninstalled torchaudio-2.8.0.dev20250901+cu129
Successfully installed sympy-1.13.1 torch-2.6.0+cu126 torchaudio-2.6.0+cu126 torchvision-0.21.0+cu126
PS C:\Users\Luis> python
Python 3.13.7 (tags/v3.13.7:bcee1c3, Aug 14 2025, 14:15:11) [MSC v.1944 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> x = torch.rand(5, 3)
>>> print(x)
tensor([[0.5237, 0.2244, 0.1601],
        [0.0265, 0.1616, 0.4206],
        [0.4102, 0.8179, 0.8825],
        [0.9164, 0.1699, 0.6823],
        [0.7495, 0.2977, 0.1345]])
>>> torch.cuda.is_available()
True

So, how do I know which is my PATH and how do I set it properly? Will this give me problems when using ComfyUI or do I have to copy the the scripts on there too?

I am a beginner in Python so bare with me. Today is the first time I understood the word environment, as I have been trying to install ComfyUI manually (I know there are easier ways but I want to have full control when I learn more). That said, I have only used PowerShell and CMD as my environments to install pips or clone repo.

This seems to be more of a generic question related to environments rather than something specific to pytorch. Anyways, here are my two cents.

I’d suggest you to check out tools like poetry or anaconda for package management and dependency resolution. The correct idea is to create a virtual environment or venv for managing python packages. Everytime you want to run your script, you’d have to activate the venv.