質問編集履歴
1
詳細を述べた
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,4 +1,22 @@
|
|
1
1
|
初歩的な質問失礼します。Requestをインストールした後、
|
2
2
|
import Requestをコマンド入力しても、
|
3
3
|
-bash: import: command not found
|
4
|
-
と表示されるのですが、なぜでしょうか。
|
4
|
+
と表示されるのですが、なぜでしょうか。
|
5
|
+
|
6
|
+
参考にしたサイト:
|
7
|
+
|
8
|
+
|
9
|
+
ターミナル:
|
10
|
+
$ pip3 install requests
|
11
|
+
Requirement already satisfied: requests in /Library/Python/3.7/site-packages (2.22.0)
|
12
|
+
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)
|
13
|
+
Requirement already satisfied: certifi>=2017.4.17 in /Library/Python/3.7/site-packages (from requests) (2019.11.28)
|
14
|
+
Requirement already satisfied: idna<2.9,>=2.5 in /Library/Python/3.7/site-packages (from requests) (2.8)
|
15
|
+
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Library/Python/3.7/site-packages (from requests) (3.0.4)
|
16
|
+
You are using pip version 19.0.3, however version 19.3.1 is available.
|
17
|
+
You should consider upgrading via the 'pip install --upgrade pip' command.
|
18
|
+
$ import requests
|
19
|
+
-bash: import: command not found
|
20
|
+
|
21
|
+
参考にしたサイト:
|
22
|
+
[スクレイピング](https://www.sejuku.net/blog/51241)
|