前提・実現したいこと
pycharmでtalibを使用したくて、インストールしようとしています。pycharmのセッティング画面にてtalibをインストールしたところ、エラーが出てしまい、インストールできません。
初心者であまりわかっていない部分も多いので、困ってしまってます。
発生している問題・エラーメッセージ
ERROR: Command errored out with exit status 1:
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'C:\Users\wataru\OneDrive\デスクトップ\test\venv\Scripts\python.exe'.
該当のソースコード
Collecting talib
Using cached talib-0.1.1.tar.gz (1.3 kB)
Building wheels for collected packages: talib
Building wheel for talib (setup.py): started
Building wheel for talib (setup.py): finished with status 'error'
Running setup.py clean for talib
Failed to build talib
Installing collected packages: talib
Running setup.py install for talib: started
Running setup.py install for talib: finished with status 'error'
DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated. pip 20.3 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333.
ERROR: Command errored out with exit status 1:
command: 'C:\Users\wataru\OneDrive\デスクトップ\test\venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\wataru\AppData\Local\Temp\pycharm-packaging\talib\setup.py'"'"'; file='"'"'C:\Users\wataru\AppData\Local\Temp\pycharm-packaging\talib\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 'C:\Users\wataru\AppData\Local\Temp\pip-wheel-fmgehumv'
cwd: C:\Users\wataru\AppData\Local\Temp\pycharm-packaging\talib
Complete output (31 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\lib\talib
copying talib\cli.py -> build\lib\talib
copying talib_init_.py -> build\lib\talib
warning: build_py: byte-compiling is disabled, skipping.
installing to build\bdist.win-amd64\wheel
running install
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\wataru\AppData\Local\Temp\pycharm-packaging\talib\setup.py", line 47, in <module>
'talib = talib.cli:cli',
File "C:\python37\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\python37\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\python37\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\wataru\OneDrive\デスクトップ\test\venv\lib\site-packages\wheel\bdist_wheel.py", line 259, in run
self.run_command('install')
File "C:\python37\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\python37\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\wataru\AppData\Local\Temp\pycharm-packaging\talib\setup.py", line 20, in run
raise Exception("You probably meant to install and run ta-lib")
Exception: You probably meant to install and run ta-lib |
---|
ERROR: Failed building wheel for talib |
DEPRECATION: Could not build wheels for talib which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368. |
ERROR: Command errored out with exit status 1: command: 'C:\Users\wataru\OneDrive\デスクトップ\test\venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\wataru\AppData\Local\Temp\pycharm-packaging\talib\setup.py'"'"'; __file__='"'"'C:\Users\wataru\AppData\Local\Temp\pycharm-packaging\talib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\wataru\AppData\Local\Temp\pip-record-wg0qy5jt\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\wataru\OneDrive\デスクトップ\test\venv\include\site\python3.7\talib' cwd: C:\Users\wataru\AppData\Local\Temp\pycharm-packaging\talib\ Complete output (14 lines): running install Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\wataru\AppData\Local\Temp\pycharm-packaging\talib\setup.py", line 47, in <module> 'talib = talib.cli:cli', File "C:\python37\lib\distutils\core.py", line 148, in setup dist.run_commands() File "C:\python37\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "C:\python37\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Users\wataru\AppData\Local\Temp\pycharm-packaging\talib\setup.py", line 20, in run raise Exception("You probably meant to install and run ta-lib") Exception: You probably meant to install and run ta-lib ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\wataru\OneDrive\デスクトップ\test\venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\wataru\AppData\Local\Temp\pycharm-packaging\talib\setup.py'"'"'; file='"'"'C:\Users\wataru\AppData\Local\Temp\pycharm-packaging\talib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\wataru\AppData\Local\Temp\pip-record-wg0qy5jt\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\wataru\OneDrive\デスクトップ\test\venv\include\site\python3.7\talib' Check the logs for full command output.
試したこと
エラーコードを検索してみたのですが、特に解決できるものが見つけられませんでした。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。