teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

(前半と後半で数字がずれているのは文字数制限を回避するためです)文言追加

2019/10/18 15:01

投稿

rr9500sc
rr9500sc

スコア16

title CHANGED
File without changes
body CHANGED
@@ -251,7 +251,7 @@
251
251
  ```
252
252
  このように出てきて、
253
253
  scikit-learnやmatplotlibが入っているのが確認できました。
254
- また、同様のコードをjupyter notebookに入れたところ、普通にimport可能であり、結果を表示することが出来ました。
254
+ また、同様のコードをjupyter notebookに入れたところ、普通にimport可能であり、結果を表示することが出来ました。(前半と後半で数字がずれているのは文字数制限を回避するためです)
255
255
 
256
256
  試したこと
257
257
  ・再起動

1

記入と投稿を時間を空けてしまったため何故か文が途中で消えてしまっていたようです。ご迷惑をおかけしました。

2019/10/18 15:01

投稿

rr9500sc
rr9500sc

スコア16

title CHANGED
File without changes
body CHANGED
@@ -1,7 +1,11 @@
1
- こんにちは。
2
1
  scikit-learnを使用したく、pythonのIDLEにて
3
2
  以下のコードを打ち込みました。
4
3
 
4
+ 環境
5
+ ・windows10 64bit
6
+ ・python3.8 32bit
7
+ ・anaconda3
8
+
5
9
  ```ここに言語を入力
6
10
  import sklearn.datasets
7
11
 
@@ -11,7 +15,6 @@
11
15
  print("画像データ=",digits.images[1])
12
16
  print("何の数字か=",digits.target[1])
13
17
  ```
14
-
15
18
  しかし、結果は
16
19
  ```ここに言語を入力
17
20
  Traceback (most recent call last):
@@ -23,7 +26,238 @@
23
26
  このようになり、moduleが見つからないという表記が出てきます。
24
27
  install出来ていないのかと思い、コマンドプロンプトにて
25
28
  pip listで確認すると
26
-
27
29
  ```ここに言語を入力
30
+ C:\Users\CF-SZ5>pip list
31
+ Package Version
32
+ ---------------------------------- ---------
33
+ alabaster 0.7.12
34
+ anaconda-client 1.7.2
35
+ anaconda-navigator 1.9.7
36
+ anaconda-project 0.8.3
37
+ asn1crypto 1.0.1
38
+ astroid 2.3.1
39
+ astropy 3.2.1
40
+ atomicwrites 1.3.0
41
+ attrs 19.2.0
42
+ Babel 2.7.0
43
+ backcall 0.1.0
44
+ backports.functools-lru-cache 1.5
45
+ backports.os 0.1.1
46
+ backports.shutil-get-terminal-size 1.0.0
47
+ backports.tempfile 1.0
48
+ backports.weakref 1.0.post1
49
+ beautifulsoup4 4.8.0
50
+ bitarray 1.0.1
51
+ bkcharts 0.2
52
+ bleach 3.1.0
53
+ bokeh 1.3.4
54
+ boto 2.49.0
55
+ Bottleneck 1.2.1
56
+ certifi 2019.9.11
57
+ cffi 1.12.3
58
+ chardet 3.0.4
59
+ Click 7.0
60
+ cloudpickle 1.2.2
61
+ clyent 1.2.2
62
+ colorama 0.4.1
63
+ comtypes 1.1.7
64
+ conda 4.7.12
65
+ conda-build 3.18.9
66
+ conda-package-handling 1.6.0
67
+ conda-verify 3.4.2
68
+ contextlib2 0.6.0
69
+ cryptography 2.7
70
+ cycler 0.10.0
71
+ Cython 0.29.13
72
+ cytoolz 0.10.0
73
+ dask 2.5.2
74
+ decorator 4.4.0
75
+ defusedxml 0.6.0
76
+ distributed 2.5.2
77
+ docutils 0.15.2
78
+ entrypoints 0.3
79
+ et-xmlfile 1.0.1
80
+ fastcache 1.1.0
81
+ filelock 3.0.12
82
+ Flask 1.1.1
83
+ fsspec 0.5.2
84
+ future 0.17.1
85
+ gevent 1.4.0
86
+ glob2 0.7
87
+ greenlet 0.4.15
88
+ h5py 2.9.0
89
+ HeapDict 1.0.1
90
+ html5lib 1.0.1
91
+ idna 2.8
92
+ imageio 2.6.0
93
+ imagesize 1.1.0
94
+ importlib-metadata 0.23
95
+ ipykernel 5.1.2
96
+ ipython 7.8.0
97
+ ipython-genutils 0.2.0
98
+ ipywidgets 7.5.1
99
+ isort 4.3.21
100
+ itsdangerous 1.1.0
101
+ jdcal 1.4.1
102
+ jedi 0.15.1
103
+ Jinja2 2.10.3
104
+ joblib 0.13.2
105
+ json5 0.8.5
106
+ jsonschema 3.0.2
107
+ jupyter 1.0.0
108
+ jupyter-client 5.3.3
109
+ jupyter-console 6.0.0
110
+ jupyter-core 4.5.0
111
+ jupyterlab 1.1.4
112
+ jupyterlab-server 1.0.6
113
+ keyring 18.0.0
114
+ kiwisolver 1.1.0
115
+ lazy-object-proxy 1.4.2
116
+ libarchive-c 2.8
117
+ llvmlite 0.29.0
118
+ locket 0.2.0
119
+ lxml 4.4.1
120
+ MarkupSafe 1.1.1
121
+ matplotlib 3.1.1
122
+ mccabe 0.6.1
123
+ menuinst 1.4.16
124
+ mistune 0.8.4
125
+ mkl-fft 1.0.14
126
+ mkl-random 1.1.0
127
+ mkl-service 2.3.0
128
+ mock 3.0.5
129
+ more-itertools 7.2.0
130
+ mpmath 1.1.0
131
+ msgpack 0.6.1
132
+ multipledispatch 0.6.0
133
+ navigator-updater 0.2.1
134
+ nbconvert 5.6.0
135
+ nbformat 4.4.0
136
+ networkx 2.3
137
+ nltk 3.4.5
138
+ nose 1.3.7
139
+ notebook 6.0.1
140
+ numba 0.45.0
141
+ numexpr 2.7.0
142
+ numpy 1.16.5
143
+ numpydoc 0.9.1
144
+ olefile 0.46
145
+ openpyxl 3.0.0
146
+ packaging 19.2
147
+ pandas 0.25.1
148
+ pandocfilters 1.4.2
149
+ parso 0.5.1
150
+ partd 1.0.0
151
+ path.py 12.0.1
152
+ pathlib2 2.3.5
153
+ patsy 0.5.1
154
+ pep8 1.7.1
155
+ pickleshare 0.7.5
156
+ Pillow 6.2.0
157
+ pip 19.2.3
158
+ pkginfo 1.5.0.1
159
+ pluggy 0.13.0
160
+ ply 3.11
161
+ prometheus-client 0.7.1
162
+ prompt-toolkit 2.0.10
163
+ psutil 5.6.3
164
+ py 1.8.0
165
+ pycodestyle 2.5.0
166
+ pycosat 0.6.3
167
+ pycparser 2.19
168
+ pycrypto 2.6.1
169
+ pycurl 7.43.0.3
170
+ pyflakes 2.1.1
171
+ Pygments 2.4.2
172
+ pylint 2.4.2
173
+ pyodbc 4.0.27
174
+ pyOpenSSL 19.0.0
175
+ pyparsing 2.4.2
176
+ pyreadline 2.1
177
+ pyrsistent 0.15.4
178
+ PySocks 1.7.1
179
+ pytest 5.2.1
180
+ pytest-arraydiff 0.3
181
+ pytest-astropy 0.5.0
182
+ pytest-doctestplus 0.4.0
183
+ pytest-openfiles 0.4.0
184
+ pytest-remotedata 0.3.2
185
+ python-dateutil 2.8.0
186
+ pytz 2019.3
187
+ PyWavelets 1.0.3
188
+ pywin32 223
189
+ pywinpty 0.5.5
190
+ PyYAML 5.1.2
191
+ pyzmq 18.1.0
192
+ QtAwesome 0.6.0
193
+ qtconsole 4.5.5
194
+ QtPy 1.9.0
195
+ requests 2.22.0
196
+ rope 0.14.0
197
+ ruamel-yaml 0.15.46
198
+ scikit-image 0.15.0
199
+ scikit-learn 0.21.1
200
+ scipy 1.3.1
201
+ seaborn 0.9.0
202
+ Send2Trash 1.5.0
203
+ setuptools 41.4.0
204
+ simplegeneric 0.8.1
205
+ singledispatch 3.4.0.3
206
+ six 1.12.0
207
+ snowballstemmer 2.0.0
208
+ sortedcollections 1.1.2
209
+ sortedcontainers 2.1.0
210
+ soupsieve 1.9.3
211
+ Sphinx 2.2.0
212
+ sphinxcontrib-applehelp 1.0.1
213
+ sphinxcontrib-devhelp 1.0.1
214
+ sphinxcontrib-htmlhelp 1.0.2
215
+ sphinxcontrib-jsmath 1.0.1
216
+ sphinxcontrib-qthelp 1.0.2
217
+ sphinxcontrib-serializinghtml 1.1.3
218
+ sphinxcontrib-websupport 1.1.2
219
+ spyder 3.3.6
220
+ spyder-kernels 0.5.2
221
+ SQLAlchemy 1.3.9
222
+ statsmodels 0.10.1
223
+ sympy 1.4
224
+ tables 3.5.2
225
+ tblib 1.4.0
226
+ terminado 0.8.2
227
+ testpath 0.4.2
228
+ toolz 0.10.0
229
+ tornado 6.0.3
230
+ tqdm 4.36.1
231
+ traitlets 4.3.3
232
+ unicodecsv 0.14.1
233
+ urllib3 1.24.2
234
+ wcwidth 0.1.7
235
+ webencodings 0.5.1
236
+ Werkzeug 0.16.0
237
+ wheel 0.33.6
238
+ widgetsnbextension 3.5.1
239
+ win-inet-pton 1.1.0
240
+ win-unicode-console 0.5
241
+ wincertstore 0.2
242
+ wrapt 1.11.2
243
+ xlrd 1.2.0
244
+ XlsxWriter 1.2.1
245
+ xlwings 0.15.10
246
+ xlwt 1.3.0
247
+ zict 1.0.0
248
+ zipp 0.6.0
249
+ WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
250
+ Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
251
+ ```
252
+ このように出てきて、
253
+ scikit-learnやmatplotlibが入っているのが確認できました。
254
+ また、同様のコードをjupyter notebookに入れたところ、普通にimport可能であり、結果を表示することが出来ました。
28
255
 
256
+ 試したこと
29
- ```
257
+ ・再起動
258
+ ・pythonの入れ直し
259
+ ・pythonを64bit→32bitへ変更
260
+ ・scikit-learnのuninstall→installを行う
261
+
262
+ 他のも必要な情報等ありましたら追記いたします。
263
+ よろしくお願いします。