pylon / streamp3

Streaming MP3 decoder for Python
Apache License 2.0
28 stars 2 forks source link

can't install on windows #12

Open damp11113 opened 11 months ago

damp11113 commented 11 months ago

I try to install 2 ways to install streamp3 with pip install streamp3 and pip install git+https://github.com/pylon/streamp3.git the output is same

pip install streamp3

Collecting streamp3
  Using cached streamp3-0.1.12.tar.gz (10 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting Cython==0.29.34 (from streamp3)
  Using cached Cython-0.29.34-py2.py3-none-any.whl (988 kB)
Building wheels for collected packages: streamp3
  Building wheel for streamp3 (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for streamp3 (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [5 lines of output]
      C:\Users\sansw\AppData\Local\Temp\pip-build-env-yuskdla8\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\sansw\AppData\Local\Temp\pip-install-aq79hh4l\streamp3_3f29ff21c0b24ca4baf45807365b106e\lame\hip.pyx
        tree = Parsing.p_module(s, pxd, full_module_name)
      hip.c
      lame\hip.c(750): fatal error C1083: Cannot open include file: 'lame/lame.h': No such file or directory
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for streamp3
Failed to build streamp3
ERROR: Could not build wheels for streamp3, which is required to install pyproject.toml-based projects

and pip install git+https://github.com/pylon/streamp3.git

Collecting git+https://github.com/pylon/streamp3.git
  Cloning https://github.com/pylon/streamp3.git to c:\users\sansw\appdata\local\temp\pip-req-build-xsls5vu9
  Running command git clone --filter=blob:none --quiet https://github.com/pylon/streamp3.git 'C:\Users\sansw\AppData\Local\Temp\pip-req-build-xsls5vu9'
  Resolved https://github.com/pylon/streamp3.git to commit 3c33a4a0cbfdd26b3d83cf27bf19b71bd381bea2
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting Cython==0.29.34 (from streamp3==0.1.12)
  Using cached Cython-0.29.34-py2.py3-none-any.whl (988 kB)
Building wheels for collected packages: streamp3
  Building wheel for streamp3 (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for streamp3 (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [5 lines of output]
      C:\Users\sansw\AppData\Local\Temp\pip-build-env-vlgg4hbv\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\sansw\AppData\Local\Temp\pip-req-build-xsls5vu9\lame\hip.pyx
        tree = Parsing.p_module(s, pxd, full_module_name)
      hip.c
      lame\hip.c(750): fatal error C1083: Cannot open include file: 'lame/lame.h': No such file or directory
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for streamp3
Failed to build streamp3
ERROR: Could not build wheels for streamp3, which is required to install pyproject.toml-based projects