I am using Python 3.6.9 and in a virtual environment and I am trying to install basemap, with no luck.
I have read over and over the installing guidelines and other sources. But the basemap file is never created at directory of the virtual environment: venv/lib/python3.6/site-packages/mpl_toolkits/.
Any help would be appreciated. This is what I do
pip3 install --upgrade --user matplotlib numpy pyproj pyshp OWSLib Pillow
sudo apt install libgeos-dev
sudo apt-get install proj-bin
sudo apt-get install geos
wget https://github.com/matplotlib/basemap/archive/refs/tags/v1.2.2rel.tar.gz
untar
cd geos-3.3.3
export GEOS_DIR=/usr/local
./configure --prefix=$GEOS_DIR
make; make install
cd ..
sudo python3 setup.py install
Then the code output looks like this
checking for GEOS lib in /home/secure ....
checking for GEOS lib in /home/secure/local ....
checking for GEOS lib in /usr ....
GEOS lib (version 3.6.2) found in /usr
running install
/home/secure/.local/lib/python3.6/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
/home/secure/.local/lib/python3.6/site-packages/setuptools/command/easy_install.py:159: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
EasyInstallDeprecationWarning,
/home/secure/.local/lib/python3.6/site-packages/pkg_resources/__init__.py:119: PkgResourcesDeprecationWarning: 0.18ubuntu0.18.04.1 is an invalid version and will not be supported in a future release
PkgResourcesDeprecationWarning,
running bdist_egg
running egg_info
running build_src
build_src
building extension "_geoslib" sources
build_src: building npy-pkg config files
writing lib/basemap.egg-info/PKG-INFO
writing dependency_links to lib/basemap.egg-info/dependency_links.txt
writing namespace_packages to lib/basemap.egg-info/namespace_packages.txt
writing requirements to lib/basemap.egg-info/requires.txt
writing top-level names to lib/basemap.egg-info/top_level.txt
/home/secure/.local/lib/python3.6/site-packages/setuptools/command/egg_info.py:628: SetuptoolsDeprecationWarning: Custom 'build_py' does not implement 'get_data_files_without_manifest'.
Please extend command classes from setuptools instead of distutils.
SetuptoolsDeprecationWarning
reading manifest file 'lib/basemap.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README'
warning: no files found matching 'LICENSE_proj4'
warning: no files found matching 'LICENSE_pyshp'
warning: no files found matching 'lib/mpl_toolkits/basemap/pyproj.py'
warning: no files found matching 'lib/mpl_toolkits/basemap/shapefile.py'
adding license file 'LICENSE_data'
adding license file 'LICENSE_epsg'
adding license file 'LICENSE_geos'
writing manifest file 'lib/basemap.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
creating build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-3.6/_geoslib.cpython-36m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/mpl_toolkits
copying build/lib.linux-x86_64-3.6/mpl_toolkits/__init__.py -> build/bdist.linux-x86_64/egg/mpl_toolkits
creating build/bdist.linux-x86_64/egg/mpl_toolkits/basemap
creating build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countries_h.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhs_i.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_2.5min_c.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countriesmeta_h.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/riversmeta_f.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhsmeta_l.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/statesmeta_c.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_10min_i.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countriesmeta_f.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_5min_i.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_10min_c.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/states_l.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countries_c.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhsmeta_i.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countriesmeta_l.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/epsg -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/riversmeta_i.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/rivers_h.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_2.5min_l.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/riversmeta_l.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countriesmeta_i.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/bmng.jpg -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_1.25min_i.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/statesmeta_i.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/states_f.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhsmeta_c.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhs_f.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhsmeta_h.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_10min_f.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/rivers_f.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/etopo1.jpg -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/UScounties.dbf -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/states_c.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countries_f.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_1.25min_f.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/rivers_i.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/statesmeta_h.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_5min_f.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/states_i.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_10min_h.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_1.25min_c.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_5min_l.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countries_l.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhsmeta_f.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countries_i.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_5min_h.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/statesmeta_l.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/riversmeta_h.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/rivers_c.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/UScounties.prj -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_2.5min_i.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_2.5min_f.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/countriesmeta_c.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/states_h.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_1.25min_l.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/riversmeta_c.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_5min_c.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_2.5min_h.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhs_c.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/shadedrelief.jpg -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/rivers_l.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_1.25min_h.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/statesmeta_f.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/lsmask_10min_l.bin -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/UScounties.shx -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhs_l.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/UScounties.shp -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/data/gshhs_h.dat -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/data
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/diagnostic.py -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/proj.py -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/solar.py -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/__init__.py -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/cm.py -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap
copying build/lib.linux-x86_64-3.6/mpl_toolkits/basemap/test.py -> build/bdist.linux-x86_64/egg/mpl_toolkits/basemap
byte-compiling build/bdist.linux-x86_64/egg/mpl_toolkits/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/diagnostic.py to diagnostic.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/proj.py to proj.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/solar.py to solar.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/cm.py to cm.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mpl_toolkits/basemap/test.py to test.cpython-36.pyc
creating stub loader for _geoslib.cpython-36m-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/_geoslib.py to _geoslib.cpython-36.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/basemap.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/basemap.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/basemap.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/basemap.egg-info/namespace_packages.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/basemap.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/basemap.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
__pycache__._geoslib.cpython-36: module references __file__
mpl_toolkits.basemap.__pycache__.__init__.cpython-36: module references __file__
creating 'dist/basemap-1.2.1-py3.6-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing basemap-1.2.1-py3.6-linux-x86_64.egg
removing '/usr/local/lib/python3.6/dist-packages/basemap-1.2.1-py3.6-linux-x86_64.egg' (and everything under it)
creating /usr/local/lib/python3.6/dist-packages/basemap-1.2.1-py3.6-linux-x86_64.egg
Extracting basemap-1.2.1-py3.6-linux-x86_64.egg to /usr/local/lib/python3.6/dist-packages
basemap 1.2.1 is already the active version in easy-install.pth
Installed /usr/local/lib/python3.6/dist-packages/basemap-1.2.1-py3.6-linux-x86_64.egg
Processing dependencies for basemap==1.2.1
Searching for six==1.12.0
Best match: six 1.12.0
Adding six 1.12.0 to easy-install.pth file
Using /home/secure/.local/lib/python3.6/site-packages
Searching for pyshp==2.1.0
Best match: pyshp 2.1.0
Adding pyshp 2.1.0 to easy-install.pth file
Using /home/secure/.local/lib/python3.6/site-packages
Searching for pyproj==2.5.0
Best match: pyproj 2.5.0
Adding pyproj 2.5.0 to easy-install.pth file
Using /home/secure/.local/lib/python3.6/site-packages
Searching for numpy==1.16.6
Best match: numpy 1.16.6
Adding numpy 1.16.6 to easy-install.pth file
Installing f2py script to /usr/local/bin
Installing f2py3 script to /usr/local/bin
Installing f2py3.6 script to /usr/local/bin
Using /home/secure/.local/lib/python3.6/site-packages
Searching for matplotlib==3.2.0
Best match: matplotlib 3.2.0
Adding matplotlib 3.2.0 to easy-install.pth file
Using /home/secure/.local/lib/python3.6/site-packages
Searching for kiwisolver==1.1.0
Best match: kiwisolver 1.1.0
Adding kiwisolver 1.1.0 to easy-install.pth file
Using /home/secure/.local/lib/python3.6/site-packages
Searching for python-dateutil==2.8.0
Best match: python-dateutil 2.8.0
Adding python-dateutil 2.8.0 to easy-install.pth file
Using /home/secure/.local/lib/python3.6/site-packages
Searching for cycler==0.10.0
Best match: cycler 0.10.0
Adding cycler 0.10.0 to easy-install.pth file
Using /usr/lib/python3/dist-packages
Searching for pyparsing==2.4.0
Best match: pyparsing 2.4.0
Adding pyparsing 2.4.0 to easy-install.pth file
Using /home/secure/.local/lib/python3.6/site-packages
Searching for setuptools==59.5.0
Best match: setuptools 59.5.0
Adding setuptools 59.5.0 to easy-install.pth file
Using /home/secure/.local/lib/python3.6/site-packages
Finished processing dependencies for basemap==1.2.1
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 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
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.