回答編集履歴
2
追記
test
CHANGED
@@ -144,6 +144,10 @@
|
|
144
144
|
|
145
145
|
|
146
146
|
|
147
|
+
※pypiをよく見たらeasy_installを使えと書いてあったのでこちらを使用しています
|
148
|
+
|
149
|
+
|
150
|
+
|
147
151
|
### 試した手順
|
148
152
|
|
149
153
|
|
@@ -212,48 +216,36 @@
|
|
212
216
|
|
213
217
|
ImportError: No module named yaml
|
214
218
|
|
215
|
-
root@74afea9a4074:/# easy_install yaml
|
219
|
+
root@74afea9a4074:/# easy_install pyyaml
|
216
220
|
|
217
221
|
WARNING: The easy_install command is deprecated and will be removed in a future version.
|
218
222
|
|
219
|
-
Searching for yaml
|
220
|
-
|
221
|
-
Reading https://pypi.org/simple/yaml/
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
e
|
226
|
-
|
227
|
-
ro
|
223
|
+
Searching for pyyaml
|
224
|
+
|
225
|
+
Reading https://pypi.org/simple/pyyaml/
|
226
|
+
|
227
|
+
Downloading https://files.pythonhosted.org/packages/ba/d4/3cf562876e0cda0405e65d351b835077ab13990e5b92912ef2bf1a2280e0/PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl#sha256=bb4191dfc9306777bc594117aee052446b3fa88737cd13b7188d0e7aa8162185
|
228
|
+
|
229
|
+
Best match: PyYAML 5.4.1
|
230
|
+
|
231
|
+
Processing PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl
|
232
|
+
|
233
|
+
Installing PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl to /usr/local/lib/python2.7/site-packages
|
234
|
+
|
235
|
+
Adding PyYAML 5.4.1 to easy-install.pth file
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
Installed /usr/local/lib/python2.7/site-packages/PyYAML-5.4.1-py2.7-linux-x86_64.egg
|
240
|
+
|
241
|
+
Processing dependencies for pyyaml
|
242
|
+
|
243
|
+
Finished processing dependencies for pyyaml
|
244
|
+
|
245
|
+
root@74afea9a4074:/# easy_install models
|
228
246
|
|
229
247
|
WARNING: The easy_install command is deprecated and will be removed in a future version.
|
230
248
|
|
231
|
-
Searching for pyyaml
|
232
|
-
|
233
|
-
Reading https://pypi.org/simple/pyyaml/
|
234
|
-
|
235
|
-
Downloading https://files.pythonhosted.org/packages/ba/d4/3cf562876e0cda0405e65d351b835077ab13990e5b92912ef2bf1a2280e0/PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl#sha256=bb4191dfc9306777bc594117aee052446b3fa88737cd13b7188d0e7aa8162185
|
236
|
-
|
237
|
-
Best match: PyYAML 5.4.1
|
238
|
-
|
239
|
-
Processing PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl
|
240
|
-
|
241
|
-
Installing PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl to /usr/local/lib/python2.7/site-packages
|
242
|
-
|
243
|
-
Adding PyYAML 5.4.1 to easy-install.pth file
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
Installed /usr/local/lib/python2.7/site-packages/PyYAML-5.4.1-py2.7-linux-x86_64.egg
|
248
|
-
|
249
|
-
Processing dependencies for pyyaml
|
250
|
-
|
251
|
-
Finished processing dependencies for pyyaml
|
252
|
-
|
253
|
-
root@74afea9a4074:/# easy_install models
|
254
|
-
|
255
|
-
WARNING: The easy_install command is deprecated and will be removed in a future version.
|
256
|
-
|
257
249
|
Searching for models
|
258
250
|
|
259
251
|
Reading https://pypi.org/simple/models/
|
1
追記
test
CHANGED
@@ -117,3 +117,169 @@
|
|
117
117
|
You should consider upgrading via the 'pip install --upgrade pip' command.
|
118
118
|
|
119
119
|
```
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
---
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
## 追記
|
128
|
+
|
129
|
+
quickquipさんの回答にあるpython2のモジュールという指摘を見て再度インストールを試した所、インストールされたようですので追記致します。
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
python2.7.18の環境で、pyyamlをインストール後にmodelsをインストールする事でインストールされたように見えます。
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
```
|
138
|
+
|
139
|
+
easy_install pyyaml
|
140
|
+
|
141
|
+
easy_install models
|
142
|
+
|
143
|
+
```
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
### 試した手順
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
#### 環境
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
```
|
156
|
+
|
157
|
+
docker run --rm -it python:2 /bin/bash
|
158
|
+
|
159
|
+
```
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
#### ログ
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
```
|
168
|
+
|
169
|
+
root@74afea9a4074:/# python --version
|
170
|
+
|
171
|
+
Python 2.7.18
|
172
|
+
|
173
|
+
root@74afea9a4074:/# easy_install models
|
174
|
+
|
175
|
+
WARNING: The easy_install command is deprecated and will be removed in a future version.
|
176
|
+
|
177
|
+
Searching for models
|
178
|
+
|
179
|
+
Reading https://pypi.org/simple/models/
|
180
|
+
|
181
|
+
Downloading https://files.pythonhosted.org/packages/92/3c/ac1ddde60c02b5a46993bd3c6f4c66a9dbc100059da8333178ce17a22db5/models-0.9.3.tar.gz#sha256=b5aa29c6b57a667cda667dd9fbd33bbd15c14cc285e57dda64f4f4c0fd35e0ae
|
182
|
+
|
183
|
+
Best match: models 0.9.3
|
184
|
+
|
185
|
+
Processing models-0.9.3.tar.gz
|
186
|
+
|
187
|
+
Writing /tmp/easy_install-eYJ323/models-0.9.3/setup.cfg
|
188
|
+
|
189
|
+
Running models-0.9.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-eYJ323/models-0.9.3/egg-dist-tmp-hThwW2
|
190
|
+
|
191
|
+
Traceback (most recent call last):
|
192
|
+
|
193
|
+
File "/usr/local/bin/easy_install", line 8, in <module>
|
194
|
+
|
195
|
+
sys.exit(main())
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
(長いので省略)
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 45, in _execfile
|
204
|
+
|
205
|
+
exec(code, globals, locals)
|
206
|
+
|
207
|
+
File "/tmp/easy_install-eYJ323/models-0.9.3/setup.py", line 25, in <module>
|
208
|
+
|
209
|
+
File "/tmp/easy_install-eYJ323/models-0.9.3/models/__init__.py", line 24, in <module>
|
210
|
+
|
211
|
+
File "/tmp/easy_install-eYJ323/models-0.9.3/models/props.py", line 23, in <module>
|
212
|
+
|
213
|
+
ImportError: No module named yaml
|
214
|
+
|
215
|
+
root@74afea9a4074:/# easy_install yaml
|
216
|
+
|
217
|
+
WARNING: The easy_install command is deprecated and will be removed in a future version.
|
218
|
+
|
219
|
+
Searching for yaml
|
220
|
+
|
221
|
+
Reading https://pypi.org/simple/yaml/
|
222
|
+
|
223
|
+
No local packages or working download links found for yaml
|
224
|
+
|
225
|
+
error: Could not find suitable distribution for Requirement.parse('yaml')
|
226
|
+
|
227
|
+
root@74afea9a4074:/# easy_install pyyaml
|
228
|
+
|
229
|
+
WARNING: The easy_install command is deprecated and will be removed in a future version.
|
230
|
+
|
231
|
+
Searching for pyyaml
|
232
|
+
|
233
|
+
Reading https://pypi.org/simple/pyyaml/
|
234
|
+
|
235
|
+
Downloading https://files.pythonhosted.org/packages/ba/d4/3cf562876e0cda0405e65d351b835077ab13990e5b92912ef2bf1a2280e0/PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl#sha256=bb4191dfc9306777bc594117aee052446b3fa88737cd13b7188d0e7aa8162185
|
236
|
+
|
237
|
+
Best match: PyYAML 5.4.1
|
238
|
+
|
239
|
+
Processing PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl
|
240
|
+
|
241
|
+
Installing PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl to /usr/local/lib/python2.7/site-packages
|
242
|
+
|
243
|
+
Adding PyYAML 5.4.1 to easy-install.pth file
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
Installed /usr/local/lib/python2.7/site-packages/PyYAML-5.4.1-py2.7-linux-x86_64.egg
|
248
|
+
|
249
|
+
Processing dependencies for pyyaml
|
250
|
+
|
251
|
+
Finished processing dependencies for pyyaml
|
252
|
+
|
253
|
+
root@74afea9a4074:/# easy_install models
|
254
|
+
|
255
|
+
WARNING: The easy_install command is deprecated and will be removed in a future version.
|
256
|
+
|
257
|
+
Searching for models
|
258
|
+
|
259
|
+
Reading https://pypi.org/simple/models/
|
260
|
+
|
261
|
+
Downloading https://files.pythonhosted.org/packages/92/3c/ac1ddde60c02b5a46993bd3c6f4c66a9dbc100059da8333178ce17a22db5/models-0.9.3.tar.gz#sha256=b5aa29c6b57a667cda667dd9fbd33bbd15c14cc285e57dda64f4f4c0fd35e0ae
|
262
|
+
|
263
|
+
Best match: models 0.9.3
|
264
|
+
|
265
|
+
Processing models-0.9.3.tar.gz
|
266
|
+
|
267
|
+
Writing /tmp/easy_install-yZdrld/models-0.9.3/setup.cfg
|
268
|
+
|
269
|
+
Running models-0.9.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-yZdrld/models-0.9.3/egg-dist-tmp-4YSLDE
|
270
|
+
|
271
|
+
zip_safe flag not set; analyzing archive contents...
|
272
|
+
|
273
|
+
Moving models-0.9.3-py2.7.egg to /usr/local/lib/python2.7/site-packages
|
274
|
+
|
275
|
+
Adding models 0.9.3 to easy-install.pth file
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
Installed /usr/local/lib/python2.7/site-packages/models-0.9.3-py2.7.egg
|
280
|
+
|
281
|
+
Processing dependencies for models
|
282
|
+
|
283
|
+
Finished processing dependencies for models
|
284
|
+
|
285
|
+
```
|