-
Notifications
You must be signed in to change notification settings - Fork 312
Description
I got a error message when installing the PyCUDA so I tried the solution posted but it did not work and still showed:
Microsoft Windows [Version 10.0.26200.7840]
Building wheels for collected packages: pycuda
Building wheel for pycuda (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pycuda (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [402 lines of output]
***************************************************************
*** WARNING: nvcc not in path.
*** May need to set CUDA_INC_DIR for installation to succeed.
***************************************************************
*************************************************************
*** I have detected that you have not run configure.py.
*************************************************************
*** Additionally, no global config files were found.
*** I will go ahead with the default configuration.
*** In all likelihood, this will not work out.
***
*** See README_SETUP.txt for more information.
***
*** If the build does fail, just re-run configure.py with the
*** correct arguments, and then retry. Good luck!
*************************************************************
*** HIT Ctrl-C NOW IF THIS IS NOT WHAT YOU WANT
*************************************************************
Continuing in 10 seconds...
Continuing in 9 seconds...
Continuing in 8 seconds...
Continuing in 7 seconds...
Continuing in 6 seconds...
Continuing in 5 seconds...
Continuing in 4 seconds...
Continuing in 3 seconds...
Continuing in 2 seconds...
Continuing in 1 seconds...
warning: no files found matching 'doc\source\*.rst'
warning: no files found matching 'doc\source\conf.py'
warning: no files found matching 'doc\source\_static\*.css'
warning: no files found matching 'doc\source\_templates\*.html'
warning: no files found matching '*.cpp' under directory 'bpl-subset\bpl_subset\boost'
warning: no files found matching '*.html' under directory 'bpl-subset\bpl_subset\boost'
warning: no files found matching '*.inl' under directory 'bpl-subset\bpl_subset\boost'
warning: no files found matching '*.txt' under directory 'bpl-subset\bpl_subset\boost'
warning: no files found matching '*.h' under directory 'bpl-subset\bpl_subset\libs'
warning: no files found matching '*.ipp' under directory 'bpl-subset\bpl_subset\libs'
warning: no files found matching '*.pl' under directory 'bpl-subset\bpl_subset\libs'
adding license file 'LICENSE'
writing manifest file 'pycuda.egg-info\SOURCES.txt'
C:\Users\Owner\AppData\Local\Temp\pip-build-env-vka_5xhc\overlay\Lib\site-packages\setuptools\command\build_py.py:215: _Warning: Package 'pycuda.cuda' is absent from the `packages` configuration.
!!
********************************************************************************
############################
# Package would be ignored #
############################
Python recognizes 'pycuda.cuda' as an importable package[^1],
but it is absent from setuptools' `packages` configuration.
This leads to an ambiguous overall configuration. If you want to distribute this
package, please make sure that 'pycuda.cuda' is explicitly added
to the `packages` configuration field.
Alternatively, you can also rely on setuptools' discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
If you don't want 'pycuda.cuda' to be distributed and are
already explicitly excluding 'pycuda.cuda' via
`find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
you can try to use `exclude_package_data`, or `include-package-data=False` in
combination with a more fine grained `package-data` configuration.
You can read more about "package data files" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[^1]: For Python, any directory (with suitable naming) can be imported,
even if it does not contain any `.py` files.
On the other hand, currently there is no concept of package data
directory, all directories are treated like packages.
********************************************************************************
!!
check.warn(importable)
creating build\lib.win-amd64-cpython-310\pycuda\cuda
copying pycuda\cuda\pycuda-complex-impl.hpp -> build\lib.win-amd64-cpython-310\pycuda\cuda
copying pycuda\cuda\pycuda-complex.hpp -> build\lib.win-amd64-cpython-310\pycuda\cuda
copying pycuda\cuda\pycuda-helpers.hpp -> build\lib.win-amd64-cpython-310\pycuda\cuda
copying pycuda\sparse\pkt_build_cython.pyx -> build\lib.win-amd64-cpython-310\pycuda\sparse
running build_ext
building '_driver' extension
creating build\temp.win-amd64-cpython-310\Release\bpl-subset\bpl_subset\libs\python\src\converter
creating build\temp.win-amd64-cpython-310\Release\bpl-subset\bpl_subset\libs\python\src\object
creating build\temp.win-amd64-cpython-310\Release\bpl-subset\bpl_subset\libs\smart_ptr\src
creating build\temp.win-amd64-cpython-310\Release\bpl-subset\bpl_subset\libs\system\src
creating build\temp.win-amd64-cpython-310\Release\bpl-subset\bpl_subset\libs\thread\src
creating build\temp.win-amd64-cpython-310\Release\bpl-subset\bpl_subset\libs\thread\src\win32
creating build\temp.win-amd64-cpython-310\Release\src\cpp
creating build\temp.win-amd64-cpython-310\Release\src\wrapper
cuda.cpp
C:\Users\Owner\AppData\Local\Temp\pip-install-5n8m7xn3\pycuda_9916ad2aabe34cb7b1edb213b5224e52\src\cpp\cuda.hpp(14): fatal error C1083: Cannot open include file: 'cuda.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\18\\BuildTools\\VC\\Tools\\MSVC\\14.50.35717\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycuda
Failed to build pycuda
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> pycuda