質問編集履歴

1

詳細を述べた

2019/12/10 03:56

投稿

TETSU51817
TETSU51817

スコア18

test CHANGED
File without changes
test CHANGED
@@ -5,3 +5,39 @@
5
5
  -bash: import: command not found
6
6
 
7
7
  と表示されるのですが、なぜでしょうか。
8
+
9
+
10
+
11
+ 参考にしたサイト:
12
+
13
+
14
+
15
+
16
+
17
+ ターミナル:
18
+
19
+ $ pip3 install requests
20
+
21
+ Requirement already satisfied: requests in /Library/Python/3.7/site-packages (2.22.0)
22
+
23
+ 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)
24
+
25
+ Requirement already satisfied: certifi>=2017.4.17 in /Library/Python/3.7/site-packages (from requests) (2019.11.28)
26
+
27
+ Requirement already satisfied: idna<2.9,>=2.5 in /Library/Python/3.7/site-packages (from requests) (2.8)
28
+
29
+ Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Library/Python/3.7/site-packages (from requests) (3.0.4)
30
+
31
+ You are using pip version 19.0.3, however version 19.3.1 is available.
32
+
33
+ You should consider upgrading via the 'pip install --upgrade pip' command.
34
+
35
+ $ import requests
36
+
37
+ -bash: import: command not found
38
+
39
+
40
+
41
+ 参考にしたサイト:
42
+
43
+ [スクレイピング](https://www.sejuku.net/blog/51241)