回答編集履歴
2
追記
answer
CHANGED
@@ -71,6 +71,8 @@
|
|
71
71
|
easy_install models
|
72
72
|
```
|
73
73
|
|
74
|
+
※pypiをよく見たらeasy_installを使えと書いてあったのでこちらを使用しています
|
75
|
+
|
74
76
|
### 試した手順
|
75
77
|
|
76
78
|
#### 環境
|
@@ -105,12 +107,6 @@
|
|
105
107
|
File "/tmp/easy_install-eYJ323/models-0.9.3/models/__init__.py", line 24, in <module>
|
106
108
|
File "/tmp/easy_install-eYJ323/models-0.9.3/models/props.py", line 23, in <module>
|
107
109
|
ImportError: No module named yaml
|
108
|
-
root@74afea9a4074:/# easy_install yaml
|
109
|
-
WARNING: The easy_install command is deprecated and will be removed in a future version.
|
110
|
-
Searching for yaml
|
111
|
-
Reading https://pypi.org/simple/yaml/
|
112
|
-
No local packages or working download links found for yaml
|
113
|
-
error: Could not find suitable distribution for Requirement.parse('yaml')
|
114
110
|
root@74afea9a4074:/# easy_install pyyaml
|
115
111
|
WARNING: The easy_install command is deprecated and will be removed in a future version.
|
116
112
|
Searching for pyyaml
|
1
追記
answer
CHANGED
@@ -57,4 +57,87 @@
|
|
57
57
|
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-plfjpjhq/models/
|
58
58
|
You are using pip version 10.0.1, however version 21.1.1 is available.
|
59
59
|
You should consider upgrading via the 'pip install --upgrade pip' command.
|
60
|
+
```
|
61
|
+
|
62
|
+
---
|
63
|
+
|
64
|
+
## 追記
|
65
|
+
quickquipさんの回答にあるpython2のモジュールという指摘を見て再度インストールを試した所、インストールされたようですので追記致します。
|
66
|
+
|
67
|
+
python2.7.18の環境で、pyyamlをインストール後にmodelsをインストールする事でインストールされたように見えます。
|
68
|
+
|
69
|
+
```
|
70
|
+
easy_install pyyaml
|
71
|
+
easy_install models
|
72
|
+
```
|
73
|
+
|
74
|
+
### 試した手順
|
75
|
+
|
76
|
+
#### 環境
|
77
|
+
|
78
|
+
```
|
79
|
+
docker run --rm -it python:2 /bin/bash
|
80
|
+
```
|
81
|
+
|
82
|
+
#### ログ
|
83
|
+
|
84
|
+
```
|
85
|
+
root@74afea9a4074:/# python --version
|
86
|
+
Python 2.7.18
|
87
|
+
root@74afea9a4074:/# easy_install models
|
88
|
+
WARNING: The easy_install command is deprecated and will be removed in a future version.
|
89
|
+
Searching for models
|
90
|
+
Reading https://pypi.org/simple/models/
|
91
|
+
Downloading https://files.pythonhosted.org/packages/92/3c/ac1ddde60c02b5a46993bd3c6f4c66a9dbc100059da8333178ce17a22db5/models-0.9.3.tar.gz#sha256=b5aa29c6b57a667cda667dd9fbd33bbd15c14cc285e57dda64f4f4c0fd35e0ae
|
92
|
+
Best match: models 0.9.3
|
93
|
+
Processing models-0.9.3.tar.gz
|
94
|
+
Writing /tmp/easy_install-eYJ323/models-0.9.3/setup.cfg
|
95
|
+
Running models-0.9.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-eYJ323/models-0.9.3/egg-dist-tmp-hThwW2
|
96
|
+
Traceback (most recent call last):
|
97
|
+
File "/usr/local/bin/easy_install", line 8, in <module>
|
98
|
+
sys.exit(main())
|
99
|
+
|
100
|
+
(長いので省略)
|
101
|
+
|
102
|
+
File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 45, in _execfile
|
103
|
+
exec(code, globals, locals)
|
104
|
+
File "/tmp/easy_install-eYJ323/models-0.9.3/setup.py", line 25, in <module>
|
105
|
+
File "/tmp/easy_install-eYJ323/models-0.9.3/models/__init__.py", line 24, in <module>
|
106
|
+
File "/tmp/easy_install-eYJ323/models-0.9.3/models/props.py", line 23, in <module>
|
107
|
+
ImportError: No module named yaml
|
108
|
+
root@74afea9a4074:/# easy_install yaml
|
109
|
+
WARNING: The easy_install command is deprecated and will be removed in a future version.
|
110
|
+
Searching for yaml
|
111
|
+
Reading https://pypi.org/simple/yaml/
|
112
|
+
No local packages or working download links found for yaml
|
113
|
+
error: Could not find suitable distribution for Requirement.parse('yaml')
|
114
|
+
root@74afea9a4074:/# easy_install pyyaml
|
115
|
+
WARNING: The easy_install command is deprecated and will be removed in a future version.
|
116
|
+
Searching for pyyaml
|
117
|
+
Reading https://pypi.org/simple/pyyaml/
|
118
|
+
Downloading https://files.pythonhosted.org/packages/ba/d4/3cf562876e0cda0405e65d351b835077ab13990e5b92912ef2bf1a2280e0/PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl#sha256=bb4191dfc9306777bc594117aee052446b3fa88737cd13b7188d0e7aa8162185
|
119
|
+
Best match: PyYAML 5.4.1
|
120
|
+
Processing PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl
|
121
|
+
Installing PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl to /usr/local/lib/python2.7/site-packages
|
122
|
+
Adding PyYAML 5.4.1 to easy-install.pth file
|
123
|
+
|
124
|
+
Installed /usr/local/lib/python2.7/site-packages/PyYAML-5.4.1-py2.7-linux-x86_64.egg
|
125
|
+
Processing dependencies for pyyaml
|
126
|
+
Finished processing dependencies for pyyaml
|
127
|
+
root@74afea9a4074:/# easy_install models
|
128
|
+
WARNING: The easy_install command is deprecated and will be removed in a future version.
|
129
|
+
Searching for models
|
130
|
+
Reading https://pypi.org/simple/models/
|
131
|
+
Downloading https://files.pythonhosted.org/packages/92/3c/ac1ddde60c02b5a46993bd3c6f4c66a9dbc100059da8333178ce17a22db5/models-0.9.3.tar.gz#sha256=b5aa29c6b57a667cda667dd9fbd33bbd15c14cc285e57dda64f4f4c0fd35e0ae
|
132
|
+
Best match: models 0.9.3
|
133
|
+
Processing models-0.9.3.tar.gz
|
134
|
+
Writing /tmp/easy_install-yZdrld/models-0.9.3/setup.cfg
|
135
|
+
Running models-0.9.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-yZdrld/models-0.9.3/egg-dist-tmp-4YSLDE
|
136
|
+
zip_safe flag not set; analyzing archive contents...
|
137
|
+
Moving models-0.9.3-py2.7.egg to /usr/local/lib/python2.7/site-packages
|
138
|
+
Adding models 0.9.3 to easy-install.pth file
|
139
|
+
|
140
|
+
Installed /usr/local/lib/python2.7/site-packages/models-0.9.3-py2.7.egg
|
141
|
+
Processing dependencies for models
|
142
|
+
Finished processing dependencies for models
|
60
143
|
```
|