質問編集履歴
1
エラーの詳細を掲載
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
heroku上に
|
1
|
+
heroku上にpythonのライブラリをインストールできません
|
test
CHANGED
@@ -2,7 +2,19 @@
|
|
2
2
|
|
3
3
|
heroku上にTA-Libをインストールしたいです。
|
4
4
|
|
5
|
+
|
6
|
+
|
5
|
-
r
|
7
|
+
heroku上のbashを実行してから、pipを使ってTA-Libをインストールしようとするとエラーが発生します。
|
8
|
+
|
9
|
+
```
|
10
|
+
|
11
|
+
heroku run bash
|
12
|
+
|
13
|
+
pip install TA-Lib
|
14
|
+
|
15
|
+
```
|
16
|
+
|
17
|
+
|
6
18
|
|
7
19
|
|
8
20
|
|
@@ -12,7 +24,135 @@
|
|
12
24
|
|
13
25
|
```
|
14
26
|
|
15
|
-
e
|
27
|
+
Collecting TA-Lib
|
28
|
+
|
29
|
+
Using cached TA-Lib-0.4.10.tar.gz
|
30
|
+
|
31
|
+
Building wheels for collected packages: TA-Lib
|
32
|
+
|
33
|
+
Running setup.py bdist_wheel for TA-Lib ... error
|
34
|
+
|
35
|
+
Complete output from command /app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ggrhshl_/TA-Lib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpy3tq74cipip-wheel- --python-tag cp36:
|
36
|
+
|
37
|
+
/tmp/pip-build-ggrhshl_/TA-Lib/setup.py:77: UserWarning: Cannot find ta-lib library, installation may fail.
|
38
|
+
|
39
|
+
warnings.warn('Cannot find ta-lib library, installation may fail.')
|
40
|
+
|
41
|
+
running bdist_wheel
|
42
|
+
|
43
|
+
running build
|
44
|
+
|
45
|
+
running build_py
|
46
|
+
|
47
|
+
creating build
|
48
|
+
|
49
|
+
creating build/lib.linux-x86_64-3.6
|
50
|
+
|
51
|
+
creating build/lib.linux-x86_64-3.6/talib
|
52
|
+
|
53
|
+
copying talib/test_func.py -> build/lib.linux-x86_64-3.6/talib
|
54
|
+
|
55
|
+
copying talib/deprecated.py -> build/lib.linux-x86_64-3.6/talib
|
56
|
+
|
57
|
+
copying talib/test_stream.py -> build/lib.linux-x86_64-3.6/talib
|
58
|
+
|
59
|
+
copying talib/test_abstract.py -> build/lib.linux-x86_64-3.6/talib
|
60
|
+
|
61
|
+
copying talib/test_data.py -> build/lib.linux-x86_64-3.6/talib
|
62
|
+
|
63
|
+
copying talib/__init__.py -> build/lib.linux-x86_64-3.6/talib
|
64
|
+
|
65
|
+
running build_ext
|
66
|
+
|
67
|
+
building 'talib.common' extension
|
68
|
+
|
69
|
+
creating build/temp.linux-x86_64-3.6
|
70
|
+
|
71
|
+
creating build/temp.linux-x86_64-3.6/talib
|
72
|
+
|
73
|
+
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/app/.heroku/python/lib/python3.6/site-packages/numpy/core/include -I/usr/include -I/usr/local/include -I/opt/include -I/opt/local/include -I/app/.heroku/python/include/python3.6m -c talib/common.c -o build/temp.linux-x86_64-3.6/talib/common.o
|
74
|
+
|
75
|
+
talib/common.c:242:28: fatal error: ta-lib/ta_defs.h: No such file or directory
|
76
|
+
|
77
|
+
#include "ta-lib/ta_defs.h"
|
78
|
+
|
79
|
+
^
|
80
|
+
|
81
|
+
compilation terminated.
|
82
|
+
|
83
|
+
error: command 'gcc' failed with exit status 1
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
----------------------------------------
|
88
|
+
|
89
|
+
Failed building wheel for TA-Lib
|
90
|
+
|
91
|
+
Running setup.py clean for TA-Lib
|
92
|
+
|
93
|
+
Failed to build TA-Lib
|
94
|
+
|
95
|
+
Installing collected packages: TA-Lib
|
96
|
+
|
97
|
+
Running setup.py install for TA-Lib ... error
|
98
|
+
|
99
|
+
Complete output from command /app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ggrhshl_/TA-Lib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-7lciel7r-record/install-record.txt --single-version-externally-managed --compile:
|
100
|
+
|
101
|
+
/tmp/pip-build-ggrhshl_/TA-Lib/setup.py:77: UserWarning: Cannot find ta-lib library, installation may fail.
|
102
|
+
|
103
|
+
warnings.warn('Cannot find ta-lib library, installation may fail.')
|
104
|
+
|
105
|
+
running install
|
106
|
+
|
107
|
+
running build
|
108
|
+
|
109
|
+
running build_py
|
110
|
+
|
111
|
+
creating build
|
112
|
+
|
113
|
+
creating build/lib.linux-x86_64-3.6
|
114
|
+
|
115
|
+
creating build/lib.linux-x86_64-3.6/talib
|
116
|
+
|
117
|
+
copying talib/test_func.py -> build/lib.linux-x86_64-3.6/talib
|
118
|
+
|
119
|
+
copying talib/deprecated.py -> build/lib.linux-x86_64-3.6/talib
|
120
|
+
|
121
|
+
copying talib/test_stream.py -> build/lib.linux-x86_64-3.6/talib
|
122
|
+
|
123
|
+
copying talib/test_abstract.py -> build/lib.linux-x86_64-3.6/talib
|
124
|
+
|
125
|
+
copying talib/test_data.py -> build/lib.linux-x86_64-3.6/talib
|
126
|
+
|
127
|
+
copying talib/__init__.py -> build/lib.linux-x86_64-3.6/talib
|
128
|
+
|
129
|
+
running build_ext
|
130
|
+
|
131
|
+
building 'talib.common' extension
|
132
|
+
|
133
|
+
creating build/temp.linux-x86_64-3.6
|
134
|
+
|
135
|
+
creating build/temp.linux-x86_64-3.6/talib
|
136
|
+
|
137
|
+
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/app/.heroku/python/lib/python3.6/site-packages/numpy/core/include -I/usr/include -I/usr/local/include -I/opt/include -I/opt/local/include -I/app/.heroku/python/include/python3.6m -c talib/common.c -o build/temp.linux-x86_64-3.6/talib/common.o
|
138
|
+
|
139
|
+
talib/common.c:242:28: fatal error: ta-lib/ta_defs.h: No such file or directory
|
140
|
+
|
141
|
+
#include "ta-lib/ta_defs.h"
|
142
|
+
|
143
|
+
^
|
144
|
+
|
145
|
+
compilation terminated.
|
146
|
+
|
147
|
+
error: command 'gcc' failed with exit status 1
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
----------------------------------------
|
152
|
+
|
153
|
+
Command "/app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ggrhshl_/TA-Lib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-7lciel7r-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ggrhshl_/TA-Lib/
|
154
|
+
|
155
|
+
|
16
156
|
|
17
157
|
```
|
18
158
|
|
@@ -20,24 +160,22 @@
|
|
20
160
|
|
21
161
|
|
22
162
|
|
163
|
+
###試したこと
|
164
|
+
|
165
|
+
エラーが出ている原因は error: command 'gcc' failed with exit status 1 なのですが、これを解決するためのコードがTA-Libに掲載してあります。
|
23
166
|
|
24
167
|
|
25
|
-
###該当のソースコード
|
26
|
-
|
27
|
-
requirement.txtの中身の一部
|
28
168
|
|
29
169
|
```ここに言語を入力
|
30
170
|
|
31
|
-
|
171
|
+
sudo apt-get install python3-dev
|
32
172
|
|
33
173
|
```
|
34
174
|
|
35
175
|
|
36
176
|
|
37
|
-
###試したこと
|
38
|
-
|
39
|
-
|
177
|
+
Ubuntuのローカルであれば、このコマンドで解決するのですが、Heroku上ではこのコマンドが使用できません。
|
40
178
|
|
41
179
|
|
42
180
|
|
43
|
-
|
181
|
+
どうすれば、Heroku上にTA-Libをインストールできるのでしょうか??
|