Problems when python installs modules in the cmd terminal

1. Errors during installation

report the following error

pip install requests
File “”, line 1
pip install requests
^
SyntaxError: invalid syntax

as shown in the picture
insert image description here

Solution

Enter after >>>exit(), and then install

insert image description here

Guess you like

Origin blog.csdn.net/m0_74459049/article/details/131217214