初歩的な質問失礼します。Requestをインストールした後、
import Requestをコマンド入力しても、
-bash: import: command not found
と表示されるのですが、なぜでしょうか。
参考にしたサイト:
ターミナル:
$ pip3 install requests
Requirement already satisfied: requests in /Library/Python/3.7/site-packages (2.22.0)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /Library/Python/3.7/site-packages (from requests) (1.25.7)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Python/3.7/site-packages (from requests) (2019.11.28)
Requirement already satisfied: idna<2.9,>=2.5 in /Library/Python/3.7/site-packages (from requests) (2.8)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Library/Python/3.7/site-packages (from requests) (3.0.4)
You are using pip version 19.0.3, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
$ import requests
-bash: import: command not found
参考にしたサイト:
スクレイピング