I know this is asked a lot but even though I'm looking for an answer for 2 hours I couldn't manage to do it. I know that I'm not the brightest in the room but dang.
>>> pip install random
File "<stdin>", line 1
pip install random
^
SyntaxError: invalid syntax
It was working before. Why I can't do it now?
CodePudding user response:
pip install random
do this outside of the python shell.
CodePudding user response:
You just need to run that command in a terminal or command prompt. Also, random is built-in to python so you do not need to install it, you just can import it using import random
.