cmd에서 pip install 에러

조회수 76회

안녕하세요. 윈도우를 사용 중인 학생입니다. pip install ta-lib을 실행해서 ta-lib이라는 패키지를 다운로드 하려고 합니다. 하지만 패키지의 일부는 다운받을 수 있으나 중간에 에러가 자꾸 납니다ㅠㅠ (일부 다른 패키지 역시 다운받을 때 같은 에러가 나타납니다)

주요 에러 내용은 다음과 같은 것 같습니다.

>  Command errored out with exit status 1:

다음은 전체 cmd 내용입니다:

(base) C:\WINDOWS\system32>pip install ta-lib
Collecting ta-lib
  Using cached TA-Lib-0.4.18.tar.gz (265 kB)
Requirement already satisfied: numpy in c:\programdata\anaconda3\lib\site-packages (from ta-lib) (1.18.5)
Building wheels for collected packages: ta-lib
  Building wheel for ta-lib (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\programdata\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-vgmeezlg\\ta-lib\\setup.py'"'"'; __file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-vgmeezlg\\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 'C:\Users\USER\AppData\Local\Temp\pip-wheel-hm75zl7e'
       cwd: C:\Users\USER\AppData\Local\Temp\pip-install-vgmeezlg\ta-lib\
  Complete output (21 lines):
  C:\Users\USER\AppData\Local\Temp\pip-install-vgmeezlg\ta-lib\setup.py:79: UserWarning: Cannot find ta-lib library, installation may fail.
    warnings.warn('Cannot find ta-lib library, installation may fail.')
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  creating build\lib.win-amd64-3.7\talib
  copying talib\abstract.py -> build\lib.win-amd64-3.7\talib
  copying talib\deprecated.py -> build\lib.win-amd64-3.7\talib
  copying talib\stream.py -> build\lib.win-amd64-3.7\talib
  copying talib\test_abstract.py -> build\lib.win-amd64-3.7\talib
  copying talib\test_data.py -> build\lib.win-amd64-3.7\talib
  copying talib\test_func.py -> build\lib.win-amd64-3.7\talib
  copying talib\test_pandas.py -> build\lib.win-amd64-3.7\talib
  copying talib\test_stream.py -> build\lib.win-amd64-3.7\talib
  copying talib\__init__.py -> build\lib.win-amd64-3.7\talib
  running build_ext
  skipping 'talib\_ta_lib.c' Cython extension (up-to-date)
  building 'talib._ta_lib' extension
  error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
  ----------------------------------------
  ERROR: Failed building wheel for ta-lib
  Running setup.py clean for ta-lib
Failed to build ta-lib
Installing collected packages: ta-lib
    Running setup.py install for ta-lib ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\programdata\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-vgmeezlg\\ta-lib\\setup.py'"'"'; __file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-vgmeezlg\\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 'C:\Users\USER\AppData\Local\Temp\pip-record-s98bj2fb\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\programdata\anaconda3\Include\ta-lib'
         cwd: C:\Users\USER\AppData\Local\Temp\pip-install-vgmeezlg\ta-lib\
    Complete output (21 lines):
    C:\Users\USER\AppData\Local\Temp\pip-install-vgmeezlg\ta-lib\setup.py:79: UserWarning: Cannot find ta-lib library, installation may fail.
      warnings.warn('Cannot find ta-lib library, installation may fail.')
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\talib
    copying talib\abstract.py -> build\lib.win-amd64-3.7\talib
    copying talib\deprecated.py -> build\lib.win-amd64-3.7\talib
    copying talib\stream.py -> build\lib.win-amd64-3.7\talib
    copying talib\test_abstract.py -> build\lib.win-amd64-3.7\talib
    copying talib\test_data.py -> build\lib.win-amd64-3.7\talib
    copying talib\test_func.py -> build\lib.win-amd64-3.7\talib
    copying talib\test_pandas.py -> build\lib.win-amd64-3.7\talib
    copying talib\test_stream.py -> build\lib.win-amd64-3.7\talib
    copying talib\__init__.py -> build\lib.win-amd64-3.7\talib
    running build_ext
    skipping 'talib\_ta_lib.c' Cython extension (up-to-date)
    building 'talib._ta_lib' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\programdata\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-vgmeezlg\\ta-lib\\setup.py'"'"'; __file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-vgmeezlg\\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 'C:\Users\USER\AppData\Local\Temp\pip-record-s98bj2fb\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\programdata\anaconda3\Include\ta-lib' Check the logs for full command output.

긴글 읽어주셔서 감사합니다.

2 답변

답변을 하려면 로그인이 필요합니다.

Hashcode는 개발자들을 위한 무료 QnA 사이트입니다. 계정을 생성하셔야만 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)

ᕕ( ᐛ )ᕗ
로그인이 필요합니다

Hashcode는 개발자들을 위한 무료 QnA사이트 입니다. 계정을 생성하셔야만 글을 작성하실 수 있습니다.