質問編集履歴
5
▼ターミナル実行結果に(6)を追加しました。こちらでよろしかったでしょうか?
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,9 +24,15 @@
|
|
24
24
|
|
25
25
|
**(1)which python** → /anaconda3/bin/python
|
26
26
|
|
27
|
+
|
28
|
+
|
27
29
|
**(2)python -V** → Python 3.6.5 :: Anaconda, Inc.
|
28
30
|
|
31
|
+
|
32
|
+
|
29
33
|
**(3)python -c 'import sys; print(sys.prefix)'** → /anaconda3
|
34
|
+
|
35
|
+
|
30
36
|
|
31
37
|
**(4)python -m pip show openpyxl** →
|
32
38
|
|
@@ -53,6 +59,28 @@
|
|
53
59
|
You are using pip version 10.0.1, however version 18.0 is available.
|
54
60
|
|
55
61
|
You should consider upgrading via the 'pip install --upgrade pip' command.
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
**(5)python** →
|
66
|
+
|
67
|
+
Python 3.6.5 |Anaconda, Inc.| (default, Apr 26 2018, 08:42:37)
|
68
|
+
|
69
|
+
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
|
70
|
+
|
71
|
+
Type "help", "copyright", "credits" or "license" for more information.
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
**(6)>>>import openpyxl
|
76
|
+
|
77
|
+
>>>print(type(sheet))→**
|
78
|
+
|
79
|
+
Traceback (most recent call last):
|
80
|
+
|
81
|
+
File "<stdin>", line 1, in <module>
|
82
|
+
|
83
|
+
NameError: name 'sheet' is not defined
|
56
84
|
|
57
85
|
|
58
86
|
|
4
「試したこと」に、どのように実行したのか詳細を追記致しました。ご確認お願い致します。
test
CHANGED
File without changes
|
test
CHANGED
@@ -70,11 +70,13 @@
|
|
70
70
|
|
71
71
|
### 試したこと
|
72
72
|
|
73
|
+
Launchpadから「IDLE」を実行し、Shell上で「import openpyxl」と入力し、F5キーで
|
74
|
+
|
75
|
+
実行致しました。
|
73
76
|
|
74
77
|
|
75
|
-
Pythonファイル上でopenpyxlをインポートしたのですが、
|
76
78
|
|
77
|
-
「ModuleNotFoundError: No module named 'openpyxl'」と表示されました。
|
79
|
+
その結果、Shellには「ModuleNotFoundError: No module named 'openpyxl'」と表示されました。
|
78
80
|
|
79
81
|
|
80
82
|
|
3
ターミナル実行結果に誤りがあったので修正致しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
▼ターミナル実行結果
|
24
24
|
|
25
|
-
**(1)which python** →
|
25
|
+
**(1)which python** → /anaconda3/bin/python
|
26
26
|
|
27
27
|
**(2)python -V** → Python 3.6.5 :: Anaconda, Inc.
|
28
28
|
|
2
ターミナル実行結果に追記致しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,15 +20,39 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
ターミナル実行結果
|
23
|
+
▼ターミナル実行結果
|
24
24
|
|
25
|
-
(1)which python → which python
|
25
|
+
**(1)which python** → which python
|
26
26
|
|
27
|
-
(2)python -V → Python 3.6.5 :: Anaconda, Inc.
|
27
|
+
**(2)python -V** → Python 3.6.5 :: Anaconda, Inc.
|
28
28
|
|
29
|
-
(3)python -c 'import sys; print(sys.prefix)' → /anaconda3
|
29
|
+
**(3)python -c 'import sys; print(sys.prefix)'** → /anaconda3
|
30
30
|
|
31
|
+
**(4)python -m pip show openpyxl** →
|
31
32
|
|
33
|
+
Name: openpyxl
|
34
|
+
|
35
|
+
Version: 2.5.3
|
36
|
+
|
37
|
+
Summary: A Python library to read/write Excel 2010 xlsx/xlsm files
|
38
|
+
|
39
|
+
Home-page: https://openpyxl.readthedocs.io
|
40
|
+
|
41
|
+
Author: See AUTHORS
|
42
|
+
|
43
|
+
Author-email: charlie.clark@clark-consulting.eu
|
44
|
+
|
45
|
+
License: MIT/Expat
|
46
|
+
|
47
|
+
Location: /anaconda3/lib/python3.6/site-packages
|
48
|
+
|
49
|
+
Requires: jdcal, et-xmlfile
|
50
|
+
|
51
|
+
Required-by:
|
52
|
+
|
53
|
+
You are using pip version 10.0.1, however version 18.0 is available.
|
54
|
+
|
55
|
+
You should consider upgrading via the 'pip install --upgrade pip' command.
|
32
56
|
|
33
57
|
|
34
58
|
|
1
ターミナル実行結果を追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -17,6 +17,18 @@
|
|
17
17
|
ModuleNotFoundError: No module named 'openpyxl
|
18
18
|
|
19
19
|
```
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
ターミナル実行結果
|
24
|
+
|
25
|
+
(1)which python → which python
|
26
|
+
|
27
|
+
(2)python -V → Python 3.6.5 :: Anaconda, Inc.
|
28
|
+
|
29
|
+
(3)python -c 'import sys; print(sys.prefix)' → /anaconda3
|
30
|
+
|
31
|
+
|
20
32
|
|
21
33
|
|
22
34
|
|