Skip to content

Error while installing pyedflib. ERROR: Failed to build installable wheels for some pyproject.toml based projects (pyedflib) #281

@Gopinadh110

Description

@Gopinadh110

Error while installing pyedflib

I saw some similar issue but there isn't any solution posted there. Hence, starting a new issue for this.

System specs -
HP Pavilion Laptop.
8 GB RAM
Intel i5 11th Gen

I am new to data science and machine learning. Please help.

Collecting pyedflib
  Using cached pyedflib-0.1.42.tar.gz (2.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.9.1 in c:\users\gopinadh\onedrive\desktop\internship\gcn_for_eeg\.venv\lib\site-packages (from pyedflib) (2.3.1)
Building wheels for collected packages: pyedflib
  Building wheel for pyedflib (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pyedflib (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [46 lines of output]
      C:\Users\gopinadh\AppData\Local\Temp\pip-build-env-kbw7bw9c\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!

              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:

              License :: OSI Approved :: BSD License

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        self._finalize_license_expression()
      running bdist_wheel
      running build
      running build_py
      creating build\lib.win-amd64-cpython-313\pyedflib
      copying pyedflib\edfreader.py -> build\lib.win-amd64-cpython-313\pyedflib
      copying pyedflib\edfwriter.py -> build\lib.win-amd64-cpython-313\pyedflib
      copying pyedflib\highlevel.py -> build\lib.win-amd64-cpython-313\pyedflib
      copying pyedflib\version.py -> build\lib.win-amd64-cpython-313\pyedflib
      copying pyedflib\__init__.py -> build\lib.win-amd64-cpython-313\pyedflib
      creating build\lib.win-amd64-cpython-313\pyedflib\_extensions
      copying pyedflib\_extensions\__init__.py -> build\lib.win-amd64-cpython-313\pyedflib\_extensions
      creating build\lib.win-amd64-cpython-313\pyedflib\data
      copying pyedflib\data\_readers.py -> build\lib.win-amd64-cpython-313\pyedflib\data
      copying pyedflib\data\__init__.py -> build\lib.win-amd64-cpython-313\pyedflib\data
      creating build\lib.win-amd64-cpython-313\pyedflib\tests
      copying pyedflib\tests\test_doc.py -> build\lib.win-amd64-cpython-313\pyedflib\tests
      copying pyedflib\tests\test_edfreader.py -> build\lib.win-amd64-cpython-313\pyedflib\tests
      copying pyedflib\tests\test_edfwriter.py -> build\lib.win-amd64-cpython-313\pyedflib\tests
      copying pyedflib\tests\test_highlevel.py -> build\lib.win-amd64-cpython-313\pyedflib\tests
      copying pyedflib\py.typed -> build\lib.win-amd64-cpython-313\pyedflib
      copying pyedflib\_extensions\_pyedflib.pyi -> build\lib.win-amd64-cpython-313\pyedflib\_extensions
      copying pyedflib\data\test_generator.edf -> build\lib.win-amd64-cpython-313\pyedflib\data
      creating build\lib.win-amd64-cpython-313\pyedflib\tests\data
      copying pyedflib\tests\data\test_generator.edf -> build\lib.win-amd64-cpython-313\pyedflib\tests\data
      copying pyedflib\tests\data\test_legacy.edf -> build\lib.win-amd64-cpython-313\pyedflib\tests\data
      copying pyedflib\tests\data\test_subsecond.edf -> build\lib.win-amd64-cpython-313\pyedflib\tests\data
      copying pyedflib\tests\data\test_utf8.edf -> build\lib.win-amd64-cpython-313\pyedflib\tests\data
      copying pyedflib\tests\data\test_generator.bdf -> build\lib.win-amd64-cpython-313\pyedflib\tests\data
      copying pyedflib\tests\data\test_generator_datarec_generator_0_5.bdf -> build\lib.win-amd64-cpython-313\pyedflib\tests\data
      copying pyedflib\tests\data\test_generator_datarec_generator_2.bdf -> build\lib.win-amd64-cpython-313\pyedflib\tests\data
      running build_clib
      building 'c_edf' library
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyedflib
Failed to build pyedflib
ERROR: Failed to build installable wheels for some pyproject.toml based projects (pyedflib)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions