以下のコードを通したいのですが、talibをインストールしたのですが、エラーが起きてしまいまして、どのように通すのかご教授していただけると助かります。
jupyterlab
1import talib as ta 2 3df["upper"], df["middle"], df["lower"] = ta.BBANDS(df['Adj close'], timeperiod=25, nbdevup=2, nbdevdn=2, matype=0)
↓
eroorcode
1---------------------------------------------------------------------- 2ModuleNotFoundError Traceback (most recent call last) 3<ipython-input-36-9e359a8d8a61> in <module> 4----> 1 import talib as ta 5 2 6 3 df["upper"], df["middle"], df["lower"] = ta.BBANDS(df['Adj close'], timeperiod=25, nbdevup=2, nbdevdn=2, matype=0) 7 8ModuleNotFoundError: No module named 'talib' 91
terminal
1pip install talib
↓
errorcode
1Collecting talib 2 Using cached talib-0.1.1.tar.gz (1.3 kB) 3Building wheels for collected packages: talib 4 Building wheel for talib (setup.py) ... error 5 ERROR: Command errored out with exit status 1: 6 command: /Users/123/opt/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/f6/j83ptl392pb9ldl499qs56l40000gn/T/pip-install-agf_urro/talib_fbe48bcc9d3640309f10bddba67e553b/setup.py'"'"'; __file__='"'"'/private/var/folders/f6/j83ptl392pb9ldl499qs56l40000gn/T/pip-install-agf_urro/talib_fbe48bcc9d3640309f10bddba67e553b/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 /private/var/folders/f6/j83ptl392pb9ldl499qs56l40000gn/T/pip-wheel-t7tsj5qg 7 cwd: /private/var/folders/f6/j83ptl392pb9ldl499qs56l40000gn/T/pip-install-agf_urro/talib_fbe48bcc9d3640309f10bddba67e553b/ 8 Complete output (29 lines): 9 running bdist_wheel 10 running build 11 running build_py 12 creating build 13 creating build/lib 14 creating build/lib/talib 15 copying talib/__init__.py -> build/lib/talib 16 copying talib/cli.py -> build/lib/talib 17 installing to build/bdist.macosx-10.9-x86_64/wheel 18 running install 19 Traceback (most recent call last): 20 File "<string>", line 1, in <module> 21 File "/private/var/folders/f6/j83ptl392pb9ldl499qs56l40000gn/T/pip-install-agf_urro/talib_fbe48bcc9d3640309f10bddba67e553b/setup.py", line 32, in <module> 22 setup( 23 File "/Users/123/opt/anaconda3/lib/python3.8/distutils/core.py", line 148, in setup 24 dist.run_commands() 25 File "/Users/123/opt/anaconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands 26 self.run_command(cmd) 27 File "/Users/123/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command 28 cmd_obj.run() 29 File "/Users/123/opt/anaconda3/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 259, in run 30 self.run_command('install') 31 File "/Users/123/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command 32 self.distribution.run_command(command) 33 File "/Users/123/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command 34 cmd_obj.run() 35 File "/private/var/folders/f6/j83ptl392pb9ldl499qs56l40000gn/T/pip-install-agf_urro/talib_fbe48bcc9d3640309f10bddba67e553b/setup.py", line 20, in run 36 raise Exception("You probably meant to install and run ta-lib") 37 Exception: You probably meant to install and run ta-lib 38 ---------------------------------------- 39 ERROR: Failed building wheel for talib 40 Running setup.py clean for talib 41Failed to build talib 42Installing collected packages: talib 43 Running setup.py install for talib ... error 44 ERROR: Command errored out with exit status 1: 45 command: /Users/123/opt/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/f6/j83ptl392pb9ldl499qs56l40000gn/T/pip-install-agf_urro/talib_fbe48bcc9d3640309f10bddba67e553b/setup.py'"'"'; __file__='"'"'/private/var/folders/f6/j83ptl392pb9ldl499qs56l40000gn/T/pip-install-agf_urro/talib_fbe48bcc9d3640309f10bddba67e553b/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/f6/j83ptl392pb9ldl499qs56l40000gn/T/pip-record-o3xp2qcq/install-record.txt --single-version-externally-managed --compile --install-headers /Users/123/opt/anaconda3/include/python3.8/talib 46 cwd: /private/var/folders/f6/j83ptl392pb9ldl499qs56l40000gn/T/pip-install-agf_urro/talib_fbe48bcc9d3640309f10bddba67e553b/ 47 Complete output (14 lines): 48 running install 49 Traceback (most recent call last): 50 File "<string>", line 1, in <module> 51 File "/private/var/folders/f6/j83ptl392pb9ldl499qs56l40000gn/T/pip-install-agf_urro/talib_fbe48bcc9d3640309f10bddba67e553b/setup.py", line 32, in <module> 52 setup( 53 File "/Users/123/opt/anaconda3/lib/python3.8/distutils/core.py", line 148, in setup 54 dist.run_commands() 55 File "/Users/123/opt/anaconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands 56 self.run_command(cmd) 57 File "/Users/123/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command 58 cmd_obj.run() 59 File "/private/var/folders/f6/j83ptl392pb9ldl499qs56l40000gn/T/pip-install-agf_urro/talib_fbe48bcc9d3640309f10bddba67e553b/setup.py", line 20, in run 60 raise Exception("You probably meant to install and run ta-lib") 61 Exception: You probably meant to install and run ta-lib 62 ---------------------------------------- 63ERROR: Command errored out with exit status 1: /Users/123/opt/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/f6/j83ptl392pb9ldl499qs56l40000gn/T/pip-install-agf_urro/talib_fbe48bcc9d3640309f10bddba67e553b/setup.py'"'"'; __file__='"'"'/private/var/folders/f6/j83ptl392pb9ldl499qs56l40000gn/T/pip-install-agf_urro/talib_fbe48bcc9d3640309f10bddba67e553b/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/f6/j83ptl392pb9ldl499qs56l40000gn/T/pip-record-o3xp2qcq/install-record.txt --single-version-externally-managed --compile --install-headers /Users//opt/anaconda3/include/python3.8/talib Check the logs for full command output. 64 65
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。