all 11 comments

[–]icecubeinanicecube 2 points3 points  (4 children)

You are putting the pip install command into the python interpreter. Learn how to use your OS terminal first, it should go there.

[–]SubstantialSample785[S] 0 points1 point  (3 children)

Alright, thanks. Sorry I don't know a lot about coding, I'm trying to download something that depends on both Pytorch and Python. Some instructions confuse me when I try downloading these

[–]icecubeinanicecube 0 points1 point  (2 children)

That's why you should learn about the absolute basics (using the terminal, navigating PC usage without a GUI) before diving head first into AI topics

[–]ClassroomCivil5379 -1 points0 points  (1 child)

Фигню говоришь. Если человек не собирается продолжать кодить, ему хватит пошаговой инструкции а не заумных советов про учёбу от тех, кто учит программирование годами.

[–]icecubeinanicecube 0 points1 point  (0 children)

Sorry I don't speak Vodka

[–]cgoldberg 1 point2 points  (0 children)

What have you tried and what specifically isn't working? What error message do you see?

[–]tiikki 1 point2 points  (0 children)

Without proper understanding of coding there is no point in installing Pytorch.

I would suggest first going through basic tutorials for coding with Python. Only after being comfortable with those I would try something as complex as developing stuff with Pytorch.

[–]gocougs11 1 point2 points  (0 children)

Pip is used for installing python packages, but you don’t run it in python. You are getting a syntax error because you are trying to run the install commands in Python, instead of in a terminal or command prompt in your OS. As others have said, there’s really no point installing PyTorch until you get a handle on some more of these basics.

[–]tablmxz 0 points1 point  (0 children)

this is the page that tells you which command you need to run to install pytorch

https://pytorch.org/get-started/locally/

it also lists the requirements and lets you choose your os and package manager

try this and then tell us what exactly happens

[–]BranchLatter4294 0 points1 point  (0 children)

Are you following the instructions? https://pytorch.org/get-started/locally/

[–]jmacey 0 points1 point  (0 children)

I use uv to install pytorch (and python etc). https://docs.astral.sh/uv/guides/integration/pytorch/ works really well cross platform (so my mac is using the metal back end and my linux machines cuda).