Python library request
Im new to adding scripts to my stream. I was following the video guides but got stuck at the request libriaries for python. I cant get the commant promt to make the requests. Im completely ignorant as to what to do next.
33 Replies
So if I understand this right, You're trying to install the python
requests
library, correct? You installed python with versions between 3.6 and 3.11, then opened a command prompt and ran this command to install requests
:
pip install requests
@MannyTheManCorrect. I have the 3.6 installed.
So what happens when you open a command prompt window and enter the command
pip install requests
I get a syntax error
GG @MannyTheMan, you just advanced to level 1 !
Can you post either the output text you get or a screenshot of the command prompt window
I have zero python experience
Oh you're running that from inside Python
type
exit()
and hit enter
Now type pip install requests
When i used exit() it closed python. I reopened it and typed pip install requests and its also syntax error
Do not reopen python
Run that command outside of python
pip
is an app that comes with python for installing 3rd party libraries
You do not use pip
from within pythonSo i type it into the windows command prompt?
Yes
Did i miss a step somewhere?
Hmm can you instead type
python -m pip install requests
This is where i got stuck yesterday
Did i install python incorrectly?
You typed in
-m pip install requests
You're supposed to enter python -m pip install requests
In one line
Did that work?Sorry, i didnt get an alert. Im going to type that up now
GG @MannyTheMan, you just advanced to level 2 !
I installed python as instructed and i can see it on the same file path as the one in the instructions
Where is Python installed to
You need to add that path to your path environment variable
I don't have the video handy so I'm not sure if that's covered in there
so, would the line be:
C:\Users\manny\AppData\Local\Programs\Python\Python36\python -m pip install requests
Yes
I have no idea what this means
was i supposed to put the scripts in a specific folder?
because i found the "Scripts" folder inside the Python36 folder
One of the messages near the bottom says that it successfully installed requests, and the other packages that requests requires
You're good to go
so i can disregard the warning about stuff not being on path?
Nah don't worry about it
I would add the path to Python to your environment path
Specifically add
C:\Users\manny\AppData\Local\Programs\Python\Python36\
to the pathi honestly dont know anything about python. my computer science class was over 15 years ago and i got a C lol
i got 1 script to load in OBS so far and that was the one with the problem. looks like that solved the issue. thank you so much for your help. i greatly appreciate it. i couldnt have dont this without your help
Gald I could help!