質問編集履歴
3
誤字
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
2
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -81,3 +81,77 @@
|
|
81
81
|
/Users/genta/.pyenv/shims/python3
|
82
82
|
|
83
83
|
genta@hachisogawagentanoMacBook-Air ~ %
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
### 追記
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
あたらしく仮想環境を作るとpipは動くようになりました。
|
94
|
+
|
95
|
+
しかしdjngorestframeworkをpipでインストールできたのですが、
|
96
|
+
|
97
|
+
```pip install djangorestframework
|
98
|
+
|
99
|
+
Collecting djangorestframework
|
100
|
+
|
101
|
+
Using cached djangorestframework-3.13.1-py3-none-any.whl (958 kB)
|
102
|
+
|
103
|
+
Requirement already satisfied: pytz in ./venv/lib/python3.10/site-packages (from djangorestframework) (2021.3)
|
104
|
+
|
105
|
+
Requirement already satisfied: django>=2.2 in ./venv/lib/python3.10/site-packages (from djangorestframework) (3.2.9)
|
106
|
+
|
107
|
+
Requirement already satisfied: sqlparse>=0.2.2 in ./venv/lib/python3.10/site-packages (from django>=2.2->djangorestframework) (0.4.2)
|
108
|
+
|
109
|
+
Requirement already satisfied: asgiref<4,>=3.3.2 in ./venv/lib/python3.10/site-packages (from django>=2.2->djangorestframework) (3.4.1)
|
110
|
+
|
111
|
+
Installing collected packages: djangorestframework
|
112
|
+
|
113
|
+
Successfully installed djangorestframework-3.13.1
|
114
|
+
|
115
|
+
コード
|
116
|
+
|
117
|
+
```
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
写真のようにファイル内で利用できない状態で、解決方法が知りたいです。。
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
ちなみに、pip install -r requirements.txtを行うとこのようなエラーが出ましたが、上のエラーと関係しているかがわかりません。
|
126
|
+
|
127
|
+
```
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
fatal error: too many errors emitted, stopping now [-ferror-limit=]
|
132
|
+
|
133
|
+
20 errors generated.
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
It appears you are missing some prerequisite to build the package from source.
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
You may install a binary package by installing 'psycopg2-binary' from PyPI.
|
142
|
+
|
143
|
+
If you want to install psycopg2 from source, please install the packages
|
144
|
+
|
145
|
+
required for the build and try again.
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
For further information please check the 'doc/src/install.rst' file (also at
|
150
|
+
|
151
|
+
<https://www.psycopg.org/docs/install.html>).
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
error: command '/usr/bin/clang' failed with exit code 1
|
156
|
+
|
157
|
+
```
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,6 +50,12 @@
|
|
50
50
|
|
51
51
|
### 補足情報(FW/ツールのバージョンなど)
|
52
52
|
|
53
|
+
|
54
|
+
|
55
|
+
このエラー以外にも、pipでinstallをすると同様のエラーがでます。
|
56
|
+
|
57
|
+
|
58
|
+
|
53
59
|
ターミナルでのバージョンの確認です。
|
54
60
|
|
55
61
|
|