"Command errored out with exit status 1" error while installing pytorch
While installing any package using pip the same error occurs again and again. Earlier the error was Environment error so I used the command :pip install --user pytorch but again an error started occurring as :
ERROR: Command errored out with exit status 1: 'c:\users\rachi\appdata\local\programs\python\python39\python.exe' -u -c 'import io, 
os, sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\Public\\Documents\\Wondershare\\CreatorTemp\\pip-install-sl2341tq\\pytorch_e91f041838de48259fd31f183263d4ca\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\Public\\Documents\\Wondershare\\CreatorTemp\\pip-install-sl2341tq\\pytorch_e91f041838de48259fd31f183263d4ca\\setup.py'&quot;'&quot;';f = getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__) if os.path.exists(__file__) else io.StringIO('&quot;'&quot;'from setuptools import setup; setup()'&quot;'&quot;');code = f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record 'C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-record-o8hob45r\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\rachi\AppData\Roaming\Python\Python39\Include\pytorch'

I don't know what to do. I am new in python. Also attaching the image of log(terminal) while installing.



The error is explicit. The package is not pytorch but torch
&gt; pip install torch

    Exception: You tried to install &quot;pytorch&quot;. The package named for PyTorch is &quot;torch&quot;
    ----------------------------------------

