質問編集履歴
3
誤字
title
CHANGED
|
File without changes
|
body
CHANGED
|
File without changes
|
2
誤字
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -39,4 +39,41 @@
|
|
|
39
39
|
/Users/genta/.pyenv/shims/python
|
|
40
40
|
genta@hachisogawagentanoMacBook-Air ~ % which python3
|
|
41
41
|
/Users/genta/.pyenv/shims/python3
|
|
42
|
-
genta@hachisogawagentanoMacBook-Air ~ %
|
|
42
|
+
genta@hachisogawagentanoMacBook-Air ~ %
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### 追記
|
|
46
|
+
|
|
47
|
+
あたらしく仮想環境を作るとpipは動くようになりました。
|
|
48
|
+
しかしdjngorestframeworkをpipでインストールできたのですが、
|
|
49
|
+
```pip install djangorestframework
|
|
50
|
+
Collecting djangorestframework
|
|
51
|
+
Using cached djangorestframework-3.13.1-py3-none-any.whl (958 kB)
|
|
52
|
+
Requirement already satisfied: pytz in ./venv/lib/python3.10/site-packages (from djangorestframework) (2021.3)
|
|
53
|
+
Requirement already satisfied: django>=2.2 in ./venv/lib/python3.10/site-packages (from djangorestframework) (3.2.9)
|
|
54
|
+
Requirement already satisfied: sqlparse>=0.2.2 in ./venv/lib/python3.10/site-packages (from django>=2.2->djangorestframework) (0.4.2)
|
|
55
|
+
Requirement already satisfied: asgiref<4,>=3.3.2 in ./venv/lib/python3.10/site-packages (from django>=2.2->djangorestframework) (3.4.1)
|
|
56
|
+
Installing collected packages: djangorestframework
|
|
57
|
+
Successfully installed djangorestframework-3.13.1
|
|
58
|
+
コード
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
写真のようにファイル内で利用できない状態で、解決方法が知りたいです。。
|
|
62
|
+
|
|
63
|
+
ちなみに、pip install -r requirements.txtを行うとこのようなエラーが出ましたが、上のエラーと関係しているかがわかりません。
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
fatal error: too many errors emitted, stopping now [-ferror-limit=]
|
|
67
|
+
20 errors generated.
|
|
68
|
+
|
|
69
|
+
It appears you are missing some prerequisite to build the package from source.
|
|
70
|
+
|
|
71
|
+
You may install a binary package by installing 'psycopg2-binary' from PyPI.
|
|
72
|
+
If you want to install psycopg2 from source, please install the packages
|
|
73
|
+
required for the build and try again.
|
|
74
|
+
|
|
75
|
+
For further information please check the 'doc/src/install.rst' file (also at
|
|
76
|
+
<https://www.psycopg.org/docs/install.html>).
|
|
77
|
+
|
|
78
|
+
error: command '/usr/bin/clang' failed with exit code 1
|
|
79
|
+
```
|
1
誤字
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
https://qiita.com/mckyhrs/items/94a2db3506287df0420e
|
|
25
25
|
|
|
26
26
|
### 補足情報(FW/ツールのバージョンなど)
|
|
27
|
+
|
|
28
|
+
このエラー以外にも、pipでinstallをすると同様のエラーがでます。
|
|
29
|
+
|
|
27
30
|
ターミナルでのバージョンの確認です。
|
|
28
31
|
|
|
29
32
|
|