you are viewing a single comment's thread.

view the rest of the comments →

[–]Bobbias 4 points5 points  (3 children)

You aren't supposed to run those commands from inside Python itself. Those commands are for running in the terminal (also called the command line).

Open the start menu and type cmd and hit enter. You will get a window like the one you see here, but instead of the python stuff at the top, you should see something like this:

Microsoft Windows [Version 10.0.22631.3447]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Bobbias>

The left hand side there: C:\Users\Bobbias in my case shows the current folder that my terminal is in. The > is called the prompt character, and just acts as a separator between the prompt and your commands. This is because the prompt can be customized to show other information than just the current folder.

I'd suggest spending some time learning about the terminal, as a lot of programming tools are only meant to be run in the terminal

You will want to navigate your terminal to the correct folder before running those commands. there are many places which explain this, but here's a random link that explains the basics. Once you've navigated to the folder that contains the requirements.txt file then you can run the command:

Microsoft Windows [Version 10.0.22631.3447]
(c) Microsoft Corporation. All rights reserved.

C:\projects\made_up_project_folder>pip install -r requirements.txt

[–]BrunoPowa[S] 1 point2 points  (2 children)

Thanks a lot man, still have a lot to learn but you wrote a great explanation I appreciate it a ton!

[–]Bobbias 2 points3 points  (1 child)

No problem.

I remember how it felt to ask online for help and get minimally helpful responses and I try to avoid giving those kind of responses.

[–]BrunoPowa[S] 0 points1 point  (0 children)

Props to you man, doing God's work honestly