I am trying to use Keras for time series forecasting and I stumbled across an error while installing Keras lib.
Here is an error message that I got:
Collecting keras
Using cached Keras-2.4.3-py2.py3-none-any.whl (36 kB)
Requirement already satisfied: numpy>=1.9.1 in e:\program files (x86)\pythonworkspace\r&dproject\venv\lib\site-packages (from keras) (1.20.1)
Collecting h5py
Using cached h5py-3.2.1.tar.gz (368 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Requirement already satisfied: scipy>=0.14 in e:\program files (x86)\pythonworkspace\r&dproject\venv\lib\site-packages (from keras) (1.6.1)
Collecting pyyaml
Using cached PyYAML-5.4.1-cp38-cp38-win32.whl (196 kB)
Building wheels for collected packages: h5py
Building wheel for h5py (PEP 517): started
Building wheel for h5py (PEP 517): finished with status 'error'
Failed to build h5py
DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated and has no effect anymore. pip 21.1 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: 'E:\Program Files (x86)\PythonWorkspace\R&DProject\venv\Scripts\python.exe' 'E:\Program Files (x86)\PythonWorkspace\R&DProject\venv\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\Pdani\AppData\Local\Temp\tmp3bkex0vs'
cwd: C:\Users\Pdani\AppData\Local\Temp\pip-install-ohk956w8\h5py_04e48a12b76742f58110ae0bdae41c39
Complete output (73 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\h5py
copying h5py\h5py_warnings.py -> build\lib.win32-3.8\h5py
copying h5py\ipy_completer.py -> build\lib.win32-3.8\h5py
copying h5py\version.py -> build\lib.win32-3.8\h5py
copying h5py\__init__.py -> build\lib.win32-3.8\h5py
creating build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\attrs.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\base.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\compat.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\dataset.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\datatype.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\dims.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\files.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\filters.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\group.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\selections.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\selections2.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\vds.py -> build\lib.win32-3.8\h5py\_hl
copying h5py\_hl\__init__.py -> build\lib.win32-3.8\h5py\_hl
creating build\lib.win32-3.8\h5py\tests
copying h5py\tests\common.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\conftest.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_attribute_create.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_attrs.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_attrs_data.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_base.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_big_endian_file.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_completions.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dataset.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dataset_getitem.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dataset_swmr.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_datatype.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dimension_scales.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dims_dimensionproxy.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_dtype.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_errors.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_file.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_file2.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_file_image.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_filters.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_group.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5d_direct_chunk.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5f.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5o.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5p.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5pl.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_h5t.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_objects.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_selections.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\test_slicing.py -> build\lib.win32-3.8\h5py\tests
copying h5py\tests\__init__.py -> build\lib.win32-3.8\h5py\tests
creating build\lib.win32-3.8\h5py\tests\data_files
copying h5py\tests\data_files\__init__.py -> build\lib.win32-3.8\h5py\tests\data_files
creating build\lib.win32-3.8\h5py\tests\test_vds
copying h5py\tests\test_vds\test_highlevel_vds.py -> build\lib.win32-3.8\h5py\tests\test_vds
copying h5py\tests\test_vds\test_lowlevel_vds.py -> build\lib.win32-3.8\h5py\tests\test_vds
copying h5py\tests\test_vds\test_virtual_source.py -> build\lib.win32-3.8\h5py\tests\test_vds
copying h5py\tests\test_vds\__init__.py -> build\lib.win32-3.8\h5py\tests\test_vds
copying h5py\tests\data_files\vlen_string_dset.h5 -> build\lib.win32-3.8\h5py\tests\data_files
copying h5py\tests\data_files\vlen_string_dset_utc.h5 -> build\lib.win32-3.8\h5py\tests\data_files
copying h5py\tests\data_files\vlen_string_s390x.h5 -> build\lib.win32-3.8\h5py\tests\data_files
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
Loading library to get build settings and version: hdf5.dll
error: Unable to load dependency HDF5, make sure HDF5 is installed properly
error: Could not find module 'hdf5.dll' (or one of its dependencies). Try using the full path with constructor syntax.
----------------------------------------
ERROR: Failed building wheel for h5py
ERROR: Could not build wheels for h5py which use PEP 517 and cannot be installed directly
I already tried different solutions like downgrading my Python interpreter from 3.9 to 3.7, updating pip to a newer version, but nothing worked so far. Now I'm totally stucked.
Make sure you have 64bit python install.
This error can be because of old pip version. Upgrade pip:
pip3 install --upgrade pip
then try to install h5py directly:
pip install h5py
And reinstall Keras:
pip install keras
Related
This question already has answers here:
Error "Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)"
(36 answers)
Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
(8 answers)
Pip error: Microsoft Visual C++ 14.0 is required
(13 answers)
Pip error even Microsoft Visual C++ 14.0 is installed
(4 answers)
How to solve "error: Microsoft Visual C++ 14.0 or greater is required" when installing Python packages?
(9 answers)
Closed 28 days ago.
I am using the pip install cx_Freeze command, but I get a subprocess error. Why does it happen?
Note: My system is Windows 11 and my Python version is 3.11.1.
Command Output:
C:\Users\<user>\>pip install cx_Freeze
Collecting cx_Freeze
Using cached cx_Freeze-6.13.1.tar.gz (1.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: packaging>=21.0 in c:\users\<user> \appdata\local\programs\python\python311\lib\site-packages (from cx_Freeze) (23.0)
Requirement already satisfied: setuptools<66,>=59.0.1 in c:\users\<user>\appdata\local\programs\python\python311\lib\site-packages (from cx_Freeze) (65.5.0)
Requirement already satisfied: lief>=0.12.0 in c:\users\<user>\appdata\local\programs\python\python311\lib\site-packages (from cx_Freeze) (0.12.3)
Building wheels for collected packages: cx_Freeze
Building wheel for cx_Freeze (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cx_Freeze (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [84 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\cli.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\common.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\darwintools.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\dist.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\exception.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\executable.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\finder.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\freezer.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\module.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\parser.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\sandbox.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\setupwriter.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\winmsvcr.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\winversioninfo.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\_compat.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze
copying cx_Freeze\__main__.py -> build\lib.win-amd64-cpython-311\cx_Freeze
creating build\lib.win-amd64-cpython-311\cx_Freeze\bases
copying cx_Freeze\bases\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\bases
creating build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\bdist_mac.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\bdist_msi.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\bdist_rpm.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\build.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\build_exe.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\install.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\install_exe.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\_bdist_msi.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\_pydialog.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
copying cx_Freeze\command\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\command
creating build\lib.win-amd64-cpython-311\cx_Freeze\hooks
copying cx_Freeze\hooks\crypto.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks
copying cx_Freeze\hooks\cv2.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks
copying cx_Freeze\hooks\exclude.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks
copying cx_Freeze\hooks\numpy.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks
copying cx_Freeze\hooks\scipy.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks
copying cx_Freeze\hooks\_qthooks.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks
copying cx_Freeze\hooks\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks
creating build\lib.win-amd64-cpython-311\cx_Freeze\initscripts
copying cx_Freeze\initscripts\console.py -> build\lib.win-amd64-cpython-311\cx_Freeze\initscripts
copying cx_Freeze\initscripts\consolesetlibpath.py -> build\lib.win-amd64-cpython-311\cx_Freeze\initscripts
copying cx_Freeze\initscripts\sharedlib.py -> build\lib.win-amd64-cpython-311\cx_Freeze\initscripts
copying cx_Freeze\initscripts\sharedlibsource.py -> build\lib.win-amd64-cpython-311\cx_Freeze\initscripts
copying cx_Freeze\initscripts\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\initscripts
copying cx_Freeze\initscripts\__startup__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\initscripts
creating build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyqt5
copying cx_Freeze\hooks\pyqt5\add_library.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyqt5
copying cx_Freeze\hooks\pyqt5\debug.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyqt5
copying cx_Freeze\hooks\pyqt5\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyqt5
creating build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyqt6
copying cx_Freeze\hooks\pyqt6\debug.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyqt6
copying cx_Freeze\hooks\pyqt6\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyqt6
creating build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside2
copying cx_Freeze\hooks\pyside2\debug.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside2
copying cx_Freeze\hooks\pyside2\resource.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside2
copying cx_Freeze\hooks\pyside2\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside2
creating build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside6
copying cx_Freeze\hooks\pyside6\debug.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside6
copying cx_Freeze\hooks\pyside6\resource.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside6
copying cx_Freeze\hooks\pyside6\__init__.py -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside6
running egg_info
writing cx_Freeze.egg-info\PKG-INFO
writing dependency_links to cx_Freeze.egg-info\dependency_links.txt
writing entry points to cx_Freeze.egg-info\entry_points.txt
writing requirements to cx_Freeze.egg-info\requires.txt
writing top-level names to cx_Freeze.egg-info\top_level.txt
reading manifest file 'cx_Freeze.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'doc/src/license.rst'
writing manifest file 'cx_Freeze.egg-info\SOURCES.txt'
copying cx_Freeze\hooks\pyside2\qt.conf -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside2
copying cx_Freeze\hooks\pyside2\resource.qrc -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside2
copying cx_Freeze\hooks\pyside2\resource.sh -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside2
copying cx_Freeze\hooks\pyside6\qt.conf -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside6
copying cx_Freeze\hooks\pyside6\resource.qrc -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside6
copying cx_Freeze\hooks\pyside6\resource.sh -> build\lib.win-amd64-cpython-311\cx_Freeze\hooks\pyside6
running build_ext
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 cx_Freeze
Failed to build cx_Freeze
ERROR: Could not build wheels for cx_Freeze, which is required to install pyproject.toml-based projects
From the error message: "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/"
cx_freeze requires a c-compiler: https://cx-freeze.readthedocs.io/en/latest/installation.html#python-requirements
I followed cocotb officials instructions to install package on windows with miniconda3 and :
conda install -c msys2 m2-base m2-make
but I'm blocked on this error :
(base) PS C:\Users\me> pip install cocotb
Collecting cocotb
Using cached cocotb-1.6.2.tar.gz (209 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: cocotb
Building wheel for cocotb (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cocotb (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [86 lines of output]
Modelsim/Questa executable (vdbg) executable not found. No FLI interface will be available.
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\cocotb
copying cocotb\ANSI.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\binary.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\clock.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\config.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\decorators.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\handle.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\ipython_support.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\log.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\memdebug.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\outcomes.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\queue.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\regression.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\result.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\scheduler.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\triggers.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\utils.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\wavedrom.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\xunit_reporter.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\_py_compat.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\_sim_versions.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\_version.py -> build\lib.win-amd64-3.9\cocotb
copying cocotb\__init__.py -> build\lib.win-amd64-3.9\cocotb
creating build\lib.win-amd64-3.9\pygpi
copying pygpi\entry.py -> build\lib.win-amd64-3.9\pygpi
copying pygpi\__init__.py -> build\lib.win-amd64-3.9\pygpi
creating build\lib.win-amd64-3.9\cocotb\types
copying cocotb\types\array.py -> build\lib.win-amd64-3.9\cocotb\types
copying cocotb\types\logic.py -> build\lib.win-amd64-3.9\cocotb\types
copying cocotb\types\logic_array.py -> build\lib.win-amd64-3.9\cocotb\types
copying cocotb\types\range.py -> build\lib.win-amd64-3.9\cocotb\types
copying cocotb\types\__init__.py -> build\lib.win-amd64-3.9\cocotb\types
creating build\lib.win-amd64-3.9\cocotb\_vendor
copying cocotb\_vendor\distutils_version.py -> build\lib.win-amd64-3.9\cocotb\_vendor
copying cocotb\_vendor\__init__.py -> build\lib.win-amd64-3.9\cocotb\_vendor
creating build\lib.win-amd64-3.9\cocotb\_vendor\find_libpython
copying cocotb\_vendor\find_libpython\_version.py -> build\lib.win-amd64-3.9\cocotb\_vendor\find_libpython
copying cocotb\_vendor\find_libpython\__init__.py -> build\lib.win-amd64-3.9\cocotb\_vendor\find_libpython
copying cocotb\_vendor\find_libpython\__main__.py -> build\lib.win-amd64-3.9\cocotb\_vendor\find_libpython
creating build\lib.win-amd64-3.9\cocotb\share
creating build\lib.win-amd64-3.9\cocotb\share\makefiles
copying cocotb\share\makefiles\Makefile.deprecations -> build\lib.win-amd64-3.9\cocotb\share\makefiles
copying cocotb\share\makefiles\Makefile.inc -> build\lib.win-amd64-3.9\cocotb\share\makefiles
copying cocotb\share\makefiles\Makefile.sim -> build\lib.win-amd64-3.9\cocotb\share\makefiles
creating build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.activehdl -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.cvc -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.ghdl -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.icarus -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.ius -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.modelsim -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.questa -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.riviera -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.vcs -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.verilator -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
copying cocotb\share\makefiles\simulators\Makefile.xcelium -> build\lib.win-amd64-3.9\cocotb\share\makefiles\simulators
creating build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\cocotb_utils.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\embed.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\exports.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\gpi.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\gpi_logging.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\py_gpi_logging.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\sv_vpi_user.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\vhpi_user.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\vhpi_user_ext.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\vpi_user.h -> build\lib.win-amd64-3.9\cocotb\share\include
copying cocotb\share\include\vpi_user_ext.h -> build\lib.win-amd64-3.9\cocotb\share\include
creating build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\.gitignore -> build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\aldec.def -> build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\ghdl.def -> build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\icarus.def -> build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\modelsim.def -> build\lib.win-amd64-3.9\cocotb\share\def
copying cocotb\share\def\README.md -> build\lib.win-amd64-3.9\cocotb\share\def
creating build\lib.win-amd64-3.9\cocotb\share\lib
creating build\lib.win-amd64-3.9\cocotb\share\lib\verilator
copying cocotb\share\lib\verilator\verilator.cpp -> build\lib.win-amd64-3.9\cocotb\share\lib\verilator
running build_ext
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 cocotb
Failed to build cocotb
ERROR: Could not build wheels for cocotb, which is required to install pyproject.toml-based projects
(base) PS C:\Users\me>
I tried with global option :
pip install --global-option build_ext --global-option --compiler=mingw32 cocotb
With exactly the same error.
It seems to be a verilator install error. I don't need verilator, maybe there is an option to not install it ?
I finally managed to install cocotb with following procedure on msys2.
Download and install msys2.
update msys2 :
$ pacman -Syu
[close then re-launch terminal]
$ pacman -Su
Install Gcc and git
$ pacman -S –needed base-devel mingw-w64-x86_64-toolchain
$ pacman -S git
Install GHDL
$ pacman -S mingw-w64-x86_64-ghdl-llvm
Install gtkwave
$ pacman -S mingw-w64-x86_64-gtkwave
Install python3
$ pacman -S mingw-w64-x86_64-python-scipy mingw-w64-x86_64-python-matplotlib mingw-w64-x86_64-python-numpy
$ pacman -S --needed make mingw-w64-x86_64-gcc mingw-w64-x86_64-python3-pip mingw-w64-x86_64-python3-setuptools mingw-w64-x86_64-python3-wheel
Close terminal then open «MSYS2 MinGW 64-bit» from windows start menu.
And finally install cocotb with pip install :
$ pip install --no-build-isolation cocotb
$ pip install --no-build-isolation pytest
$ pip install --no-build-isolation cocotbext-axi
then enjoy classical cocotb makefile to simulate VHDL with GHDL. And visualize vcd traces with gtkwave.
I tested this procedure on other windows computer with succes.
I am trying to install pd datareader but keep getting an error. I installed latest version of pip. It looks like it is something to do with bdist_wheel, I have installed wheel on the of chance but still the same issue. The errors returned when installed below.
thanks
Collecting pandas-datareader
Using cached pandas_datareader-0.10.0-py3-none-any.whl (109 kB)
Requirement already satisfied: requests>=2.19.0 in /opt/homebrew/Cellar/jupyterlab/3.2.4/libexec/lib/python3.9/site-packages (from pandas-datareader) (2.26.0)
Collecting lxml
Using cached lxml-4.8.0.tar.gz (3.2 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: pandas>=0.23 in /opt/homebrew/Cellar/jupyterlab/3.2.4/libexec/lib/python3.9/site-packages (from pandas-datareader) (1.3.4)
Requirement already satisfied: python-dateutil>=2.7.3 in /opt/homebrew/Cellar/jupyterlab/3.2.4/libexec/lib/python3.9/site-packages (from pandas>=0.23->pandas-datareader) (2.8.2)
Requirement already satisfied: numpy>=1.20.0 in /opt/homebrew/Cellar/jupyterlab/3.2.4/libexec/lib/python3.9/site-packages (from pandas>=0.23->pandas-datareader) (1.21.4)
Requirement already satisfied: pytz>=2017.3 in /opt/homebrew/Cellar/jupyterlab/3.2.4/libexec/lib/python3.9/site-packages (from pandas>=0.23->pandas-datareader) (2021.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/homebrew/Cellar/jupyterlab/3.2.4/libexec/lib/python3.9/site-packages (from requests>=2.19.0->pandas-datareader) (1.26.7)
Requirement already satisfied: certifi>=2017.4.17 in /opt/homebrew/Cellar/jupyterlab/3.2.4/libexec/lib/python3.9/site-packages (from requests>=2.19.0->pandas-datareader) (2021.10.8)
Requirement already satisfied: charset_normalizer~=2.0.0 in /opt/homebrew/Cellar/jupyterlab/3.2.4/libexec/lib/python3.9/site-packages (from requests>=2.19.0->pandas-datareader) (2.0.7)
Requirement already satisfied: idna<4,>=2.5 in /opt/homebrew/Cellar/jupyterlab/3.2.4/libexec/lib/python3.9/site-packages (from requests>=2.19.0->pandas-datareader) (3.3)
Requirement already satisfied: six>=1.5 in /opt/homebrew/Cellar/six/1.16.0_2/lib/python3.9/site-packages (from python-dateutil>=2.7.3->pandas>=0.23->pandas-datareader) (1.16.0)
Building wheels for collected packages: lxml
Building wheel for lxml (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [91 lines of output]
Building lxml version 4.8.0.
Building without Cython.
Building against libxml2 2.9.4 and libxslt 1.1.29
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11-arm64-3.9
creating build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/_elementpath.py -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/sax.py -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/pyclasslookup.py -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/init.py -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/builder.py -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/doctestcompare.py -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/usedoctest.py -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/cssselect.py -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/ElementInclude.py -> build/lib.macosx-11-arm64-3.9/lxml
creating build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/init.py -> build/lib.macosx-11-arm64-3.9/lxml/includes
creating build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/defs.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/clean.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/init.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/formfill.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/builder.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/diff.py -> build/lib.macosx-11-arm64-3.9/lxml/html
creating build/lib.macosx-11-arm64-3.9/lxml/isoschematron
copying src/lxml/isoschematron/init.py -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron
copying src/lxml/etree.h -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/etree_api.h -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/lxml.etree.h -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/init.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.macosx-11-arm64-3.9/lxml/includes
creating build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources
creating build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/rng
creating build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl
creating build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.macosx-11-arm64-3.9
creating build/temp.macosx-11-arm64-3.9/src
creating build/temp.macosx-11-arm64-3.9/src/lxml
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include -Isrc -Isrc/lxml/includes -I/opt/homebrew/include -I/opt/homebrew/opt/openssl#1.1/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/Cellar/jupyterlab/3.2.4/libexec/include -I/opt/homebrew/opt/python#3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/lxml/etree.c -o build/temp.macosx-11-arm64-3.9/src/lxml/etree.o -w -flat_namespace
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Compile failed: command '/usr/bin/clang' failed with exit code 1
creating var
creating var/folders
creating var/folders/vx
creating var/folders/vx/l4bxmh9d7wg66w0vvk_hsndw0000gn
creating var/folders/vx/l4bxmh9d7wg66w0vvk_hsndw0000gn/T
cc -I/usr/include -I/usr/include/libxml2 -c /var/folders/vx/l4bxmh9d7wg66w0vvk_hsndw0000gn/T/xmlXPathInitk5zjr2rs.c -o var/folders/vx/l4bxmh9d7wg66w0vvk_hsndw0000gn/T/xmlXPathInitk5zjr2rs.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
Perhaps try: xcode-select --install
*********************************************************************************
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lxml
Running setup.py clean for lxml
Failed to build lxml
Installing collected packages: lxml, pandas-datareader
Running setup.py install for lxml ... error
error: subprocess-exited-with-error
× Running setup.py install for lxml did not run successfully.
│ exit code: 1
╰─> [88 lines of output]
Building lxml version 4.8.0.
Building without Cython.
Building against libxml2 2.9.4 and libxslt 1.1.29
running install
/opt/homebrew/Cellar/jupyterlab/3.2.4/libexec/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.macosx-11-arm64-3.9
creating build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/_elementpath.py -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/sax.py -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/pyclasslookup.py -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/init.py -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/builder.py -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/doctestcompare.py -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/usedoctest.py -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/cssselect.py -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/ElementInclude.py -> build/lib.macosx-11-arm64-3.9/lxml
creating build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/init.py -> build/lib.macosx-11-arm64-3.9/lxml/includes
creating build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/defs.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/clean.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/init.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/formfill.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/builder.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.macosx-11-arm64-3.9/lxml/html
copying src/lxml/html/diff.py -> build/lib.macosx-11-arm64-3.9/lxml/html
creating build/lib.macosx-11-arm64-3.9/lxml/isoschematron
copying src/lxml/isoschematron/init.py -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron
copying src/lxml/etree.h -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/etree_api.h -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/lxml.etree.h -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.macosx-11-arm64-3.9/lxml
copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/init.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-11-arm64-3.9/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.macosx-11-arm64-3.9/lxml/includes
creating build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources
creating build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/rng
creating build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl
creating build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-11-arm64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.macosx-11-arm64-3.9
creating build/temp.macosx-11-arm64-3.9/src
creating build/temp.macosx-11-arm64-3.9/src/lxml
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include -Isrc -Isrc/lxml/includes -I/opt/homebrew/include -I/opt/homebrew/opt/openssl#1.1/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/Cellar/jupyterlab/3.2.4/libexec/include -I/opt/homebrew/opt/python#3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/lxml/etree.c -o build/temp.macosx-11-arm64-3.9/src/lxml/etree.o -w -flat_namespace
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Compile failed: command '/usr/bin/clang' failed with exit code 1
cc -I/usr/include -I/usr/include/libxml2 -c /var/folders/vx/l4bxmh9d7wg66w0vvk_hsndw0000gn/T/xmlXPathInitrm8ek8az.c -o var/folders/vx/l4bxmh9d7wg66w0vvk_hsndw0000gn/T/xmlXPathInitrm8ek8az.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
Perhaps try: xcode-select --install
*********************************************************************************
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> lxml
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Note: you may need to restart the kernel to use updated packages.
I'm trying to install a library which relies on h5py.
However, when I try to install it I get this error:
Collecting h5py Using cached h5py-3.1.0.tar.gz (371 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done
Preparing wheel metadata ... done Collecting markdown>=2.6.8 Using cached Markdown-3.3.3-py3-none-any.whl (96 kB) Collecting werkzeug>=0.11.10 Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB) Requirement already satisfied, skipping upgrade: setuptools in c:\users\user\desktop\projects\python\mlagents\venv\lib\site-packages (from protobuf>=3.6.1-
tensorflow==1.12.0) (50.3.2) Using legacy 'setup.py install' for termcolor, since package 'wheel' is not installed. Building wheels for collected packages: h5py Building wheel for h5py (PEP 517) ... error ERROR: Command errored out with exit status 1: command: 'c:\users\user\desktop\projects\python\mlagents\venv\scripts\python.exe' 'c:\users\user\desktop\projects\python\mlagents\venv\lib\site-packages \pip_vendor\pep517_in_process.py' build_wheel 'C:\Users\USER\AppData\Local\Temp\tmpf62jt8ch'
cwd: C:\Users\USER\AppData\Local\Temp\pip-install-7diegpjl\h5py Complete output (70 lines): running bdist_wheel running build running build_py creating build creating build\lib.win32-3.8 creating build\lib.win32-3.8\h5py copying h5py\h5py_warnings.py -> build\lib.win32-3.8\h5py copying h5py\ipy_completer.py -> build\lib.win32-3.8\h5py copying h5py\version.py -> build\lib.win32-3.8\h5py copying h5py_init_.py -> build\lib.win32-3.8\h5py creating build\lib.win32-3.8\h5py_hl copying h5py_hl\attrs.py -> build\lib.win32-3.8\h5py_hl copying h5py_hl\base.py -> build\lib.win32-3.8\h5py_hl copying h5py_hl\compat.py -> build\lib.win32-3.8\h5py_hl copying h5py_hl\dataset.py -> build\lib.win32-3.8\h5py_hl copying h5py_hl\datatype.py -> build\lib.win32-3.8\h5py_hl copying h5py_hl\dims.py -> build\lib.win32-3.8\h5py_hl copying h5py_hl\files.py -> build\lib.win32-3.8\h5py_hl copying h5py_hl\filters.py -> build\lib.win32-3.8\h5py_hl copying h5py_hl\group.py -> build\lib.win32-3.8\h5py_hl copying h5py_hl\selections.py -> build\lib.win32-3.8\h5py_hl copying h5py_hl\selections2.py -> build\lib.win32-3.8\h5py_hl copying h5py_hl\vds.py -> build\lib.win32-3.8\h5py_hl copying h5py_hl_init_.py -> build\lib.win32-3.8\h5py_hl creating build\lib.win32-3.8\h5py\tests copying h5py\tests\common.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\conftest.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_attribute_create.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_attrs.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_attrs_data.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_base.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_big_endian_file.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_completions.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_dataset.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_dataset_getitem.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_dataset_swmr.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_datatype.py
-> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_dimension_scales.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_dims_dimensionproxy.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_dtype.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_errors.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_file.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_file2.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_file_image.py
-> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_filters.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_group.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_h5.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_h5d_direct_chunk.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_h5f.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_h5p.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_h5pl.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_h5t.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_objects.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_selections.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests\test_slicing.py -> build\lib.win32-3.8\h5py\tests copying h5py\tests_init_.py -> build\lib.win32-3.8\h5py\tests creating build\lib.win32-3.8\h5py\tests\data_files copying h5py\tests\data_files_init_.py -> build\lib.win32-3.8\h5py\tests\data_files creating build\lib.win32-3.8\h5py\tests\test_vds copying h5py\tests\test_vds\test_highlevel_vds.py -> build\lib.win32-3.8\h5py\tests\test_vds copying h5py\tests\test_vds\test_lowlevel_vds.py -> build\lib.win32-3.8\h5py\tests\test_vds copying h5py\tests\test_vds\test_virtual_source.py -> build\lib.win32-3.8\h5py\tests\test_vds copying h5py\tests\test_vds_init_.py -> build\lib.win32-3.8\h5py\tests\test_vds copying h5py\tests\data_files\vlen_string_dset.h5 -> build\lib.win32-3.8\h5py\tests\data_files copying h5py\tests\data_files\vlen_string_dset_utc.h5 -> build\lib.win32-3.8\h5py\tests\data_files copying h5py\tests\data_files\vlen_string_s390x.h5 -> build\lib.win32-3.8\h5py\tests\data_files running build_ext Loading library to get version: hdf5.dll error: Unable to load dependency HDF5, make sure HDF5 is installed properly error: Could not find module 'hdf5.dll'. Try using the full path with constructor syntax.
ERROR: Failed building wheel for h5py Failed to build h5py ERROR: Could not build wheels for h5py which use PEP 517 and cannot be installed directly
I realize from that that i"m missing HDF5 however I could not find a proper way to install it.
And even if I do, I have no idea where h5py wants its dll to be in order to be read.
Edit
I am using Python 3.8.0
And if someone wonders what library I tried to install is tensorflow.
pip install tensorflow
is not working for me so I used the direct wheel file for version 1.14.0
Appreciating your help :)
I'm using Python 3.9 on Apple Silicon and faced with the same error.
I fixed it by the following procedures:
brew install hdf5
git clone https://github.com/h5py/h5py
Open setup_configure.py and modify this line:
- default_path = 'libhdf5.dylib'
+ default_path = '/opt/homebrew/lib/libhdf5.dylib'
H5PY_SETUP_REQUIRES=0 python3 setup.py build
python3 -m pip install . --no-build-isolation
This is because of the major update (python 3.9) has so many bugs. I tried to install opencv module in python and it prompts the same error, you have two options;
you can download the older version of python like python 3.8/7, which can support H5PY.
Be patient and wait for python to fix all the bugs, it will be all good at mid december or earlier.
hope it helped ya! :)
Downgrade to older versions of python until you can install keras(i guess this is where you are facing the problem). Went from python 3.8 to 3.7 and at last to 3.6.8, where i did not face any errors like the previous versions. Nothing to worry as this python version supports almost every library as the latest versions.
This is strange because I've seen people install tensorflow on versions newer than Python 3.8.. but I found somewhere that H5PY is not compatible with python 3.8
and that I need to downgrade...
However, I think it's because older versions of tensorflow do work for me, but what I do requires at least 1.14.0...
I'll try to downgrade python more(to python 3.7.) and update you on it
EDIT
It's working. I am using Python 3.7.2 and everything works perfectly!
I didn't even have to get the wheel file for tensorflow I could just do pip install tensorflow normally.
Thanks for everyone who commented :)
the error msg :
Building wheel for PyGObject (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpnfra__iq
cwd: /tmp/pip-install-4p2n3fm2/pygobject
Complete output (43 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/pygtkcompat
copying pygtkcompat/__init__.py -> build/lib.linux-x86_64-3.6/pygtkcompat
copying pygtkcompat/generictreemodel.py -> build/lib.linux-x86_64-3.6/pygtkcompat
copying pygtkcompat/pygtkcompat.py -> build/lib.linux-x86_64-3.6/pygtkcompat
creating build/lib.linux-x86_64-3.6/gi
copying gi/__init__.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_compat.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_constants.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_error.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_gtktemplate.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_option.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_ossighelper.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_propertyhelper.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_signalhelper.py -> build/lib.linux-x86_64-3.6/gi
copying gi/docstring.py -> build/lib.linux-x86_64-3.6/gi
copying gi/importer.py -> build/lib.linux-x86_64-3.6/gi
copying gi/module.py -> build/lib.linux-x86_64-3.6/gi
copying gi/pygtkcompat.py -> build/lib.linux-x86_64-3.6/gi
copying gi/types.py -> build/lib.linux-x86_64-3.6/gi
creating build/lib.linux-x86_64-3.6/gi/repository
copying gi/repository/__init__.py -> build/lib.linux-x86_64-3.6/gi/repository
creating build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/GIMarshallingTests.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/GLib.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/GObject.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/Gdk.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/GdkPixbuf.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/Gio.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/Gtk.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/Pango.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/__init__.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/keysyms.py -> build/lib.linux-x86_64-3.6/gi/overrides
running build_ext
Package cairo-gobject was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo-gobject.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo-gobject' found
Command '('pkg-config', '--print-errors', '--exists', 'cairo-gobject >= 0')' returned non-zero exit status 1.
----------------------------------------
ERROR: Failed building wheel for PyGObject
Failed to build PyGObject
ERROR: Could not build wheels for PyGObject which use PEP 517 and cannot be installed directly
You should install pygobject from your distribution package. Otherwise you need to install all the required headers for cairo and probably GTK.