質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

C++

C++はC言語をもとにしてつくられた最もよく使われるマルチパラダイムプログラミング言語の1つです。オブジェクト指向、ジェネリック、命令型など広く対応しており、多目的に使用されています。

Q&A

0回答

3093閲覧

python pip pycuda インストールエラーについて

tanaka_sayuu

総合スコア0

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

C++

C++はC言語をもとにしてつくられた最もよく使われるマルチパラダイムプログラミング言語の1つです。オブジェクト指向、ジェネリック、命令型など広く対応しており、多目的に使用されています。

0グッド

0クリップ

投稿2022/01/19 07:23

1.以下の記事を参考にpipを使って,pycudaをインストールしているときに,以下のようなエラーが出ました。

https://selfdevelopment.info/pycuda%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%80%90python-on-windows%e3%80%91/

コマンドプロント上実行文
pip install pycuda

以下
Collecting pycuda
Using cached pycuda-2021.1.tar.gz (1.7 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting mako
Using cached Mako-1.1.6-py2.py3-none-any.whl (75 kB)
Requirement already satisfied: appdirs>=1.4.0 in c:\programdata\anaconda3\lib\site-packages (from pycuda) (1.4.4)
Collecting pytools>=2011.2
Using cached pytools-2021.2.9-py2.py3-none-any.whl
Requirement already satisfied: numpy>=1.6.0 in c:\programdata\anaconda3\lib\site-packages (from pytools>=2011.2->pycuda) (1.20.1)
Requirement already satisfied: MarkupSafe>=0.9.2 in c:\programdata\anaconda3\lib\site-packages (from mako->pycuda) (1.1.1)
Building wheels for collected packages: pycuda
Building wheel for pycuda (pyproject.toml) ... error

以下赤文字
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\python.exe' 'C:\Users\Oyama-lab\AppData\Roaming\Python\Python38\site-packages\pip_vendor\pep517\in_process_in_process.py' build_wheel 'C:\Users\OYAMA-~1\AppData\Local\Temp\tmpislz5gke'
cwd: C:\Users\Oyama-lab\AppData\Local\Temp\pip-install-sk5bgmew\pycuda_a194a2ac68f3469a9e9d5a487b3db33d
Complete output (104 lines):


*** 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...

running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\pycuda
copying pycuda\autoinit.py -> build\lib.win-amd64-3.8\pycuda
copying pycuda\autoprimaryctx.py -> build\lib.win-amd64-3.8\pycuda
copying pycuda\characterize.py -> build\lib.win-amd64-3.8\pycuda
copying pycuda\compiler.py -> build\lib.win-amd64-3.8\pycuda
copying pycuda\cumath.py -> build\lib.win-amd64-3.8\pycuda
copying pycuda\curandom.py -> build\lib.win-amd64-3.8\pycuda
copying pycuda\debug.py -> build\lib.win-amd64-3.8\pycuda
copying pycuda\driver.py -> build\lib.win-amd64-3.8\pycuda
copying pycuda\elementwise.py -> build\lib.win-amd64-3.8\pycuda
copying pycuda\gpuarray.py -> build\lib.win-amd64-3.8\pycuda
copying pycuda\reduction.py -> build\lib.win-amd64-3.8\pycuda
copying pycuda\scan.py -> build\lib.win-amd64-3.8\pycuda
copying pycuda\tools.py -> build\lib.win-amd64-3.8\pycuda
copying pycuda_cluda.py -> build\lib.win-amd64-3.8\pycuda
copying pycuda_mymako.py -> build\lib.win-amd64-3.8\pycuda
copying pycuda_init_.py -> build\lib.win-amd64-3.8\pycuda
creating build\lib.win-amd64-3.8\pycuda\gl
copying pycuda\gl\autoinit.py -> build\lib.win-amd64-3.8\pycuda\gl
copying pycuda\gl_init_.py -> build\lib.win-amd64-3.8\pycuda\gl
creating build\lib.win-amd64-3.8\pycuda\sparse
copying pycuda\sparse\cg.py -> build\lib.win-amd64-3.8\pycuda\sparse
copying pycuda\sparse\coordinate.py -> build\lib.win-amd64-3.8\pycuda\sparse
copying pycuda\sparse\inner.py -> build\lib.win-amd64-3.8\pycuda\sparse
copying pycuda\sparse\operator.py -> build\lib.win-amd64-3.8\pycuda\sparse
copying pycuda\sparse\packeted.py -> build\lib.win-amd64-3.8\pycuda\sparse
copying pycuda\sparse\pkt_build.py -> build\lib.win-amd64-3.8\pycuda\sparse
copying pycuda\sparse_init_.py -> build\lib.win-amd64-3.8\pycuda\sparse
creating build\lib.win-amd64-3.8\pycuda\compyte
copying pycuda\compyte\array.py -> build\lib.win-amd64-3.8\pycuda\compyte
copying pycuda\compyte\dtypes.py -> build\lib.win-amd64-3.8\pycuda\compyte
copying pycuda\compyte_init_.py -> build\lib.win-amd64-3.8\pycuda\compyte
running egg_info
C:\Users\Oyama-lab\AppData\Local\Temp\pip-build-env-wcfc0q4a\overlay\Lib\site-packages\setuptools_distutils\dist.py:275: UserWarning: Unknown distribution option: 'test_requires'
warnings.warn(msg)
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'
writing manifest file 'pycuda.egg-info\SOURCES.txt'
creating build\lib.win-amd64-3.8\pycuda\cuda
copying pycuda\cuda\pycuda-complex-impl.hpp -> build\lib.win-amd64-3.8\pycuda\cuda
copying pycuda\cuda\pycuda-complex.hpp -> build\lib.win-amd64-3.8\pycuda\cuda
copying pycuda\cuda\pycuda-helpers.hpp -> build\lib.win-amd64-3.8\pycuda\cuda
copying pycuda\sparse\pkt_build_cython.pyx -> build\lib.win-amd64-3.8\pycuda\sparse
running build_ext
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\bpl-subset
creating build\temp.win-amd64-3.8\Release\bpl-subset\bpl_subset
creating build\temp.win-amd64-3.8\Release\bpl-subset\bpl_subset\libs
creating build\temp.win-amd64-3.8\Release\bpl-subset\bpl_subset\libs\python
creating build\temp.win-amd64-3.8\Release\bpl-subset\bpl_subset\libs\python\src
creating build\temp.win-amd64-3.8\Release\bpl-subset\bpl_subset\libs\python\src\converter
creating build\temp.win-amd64-3.8\Release\bpl-subset\bpl_subset\libs\python\src\object
creating build\temp.win-amd64-3.8\Release\bpl-subset\bpl_subset\libs\smart_ptr
creating build\temp.win-amd64-3.8\Release\bpl-subset\bpl_subset\libs\smart_ptr\src
creating build\temp.win-amd64-3.8\Release\bpl-subset\bpl_subset\libs\system
creating build\temp.win-amd64-3.8\Release\bpl-subset\bpl_subset\libs\system\src
creating build\temp.win-amd64-3.8\Release\bpl-subset\bpl_subset\libs\thread
creating build\temp.win-amd64-3.8\Release\bpl-subset\bpl_subset\libs\thread\src
creating build\temp.win-amd64-3.8\Release\bpl-subset\bpl_subset\libs\thread\src\win32
creating build\temp.win-amd64-3.8\Release\src
creating build\temp.win-amd64-3.8\Release\src\cpp
creating build\temp.win-amd64-3.8\Release\src\wrapper
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DBOOST_PYTHON_SOURCE=1 -Dboost=pycudaboost -DBOOST_THREAD_DONT_USE_CHRONO=1 -DPYGPU_PACKAGE=pycuda -DPYGPU_PYCUDA=1 -DHAVE_CURAND=1 -Isrc/cpp -Ibpl-subset/bpl_subset "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -IC:\Users\Oyama-lab\AppData\Local\Temp\pip-build-env-wcfc0q4a\overlay\Lib\site-packages\numpy\core\include -IC:\ProgramData\Anaconda3\include -IC:\ProgramData\Anaconda3\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" /EHsc /Tpbpl-subset/bpl_subset/libs/python/src/converter/arg_to_python_base.cpp /Fobuild\temp.win-amd64-3.8\Release\bpl-subset/bpl_subset/libs/python/src/converter/arg_to_python_base.obj /EHsc
arg_to_python_base.cpp
C:\ProgramData\Anaconda3\include\pyconfig.h(59): fatal error C1083: include ファイルを開けません。'io.h':No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual ### Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
ERROR: Failed building wheel for pycuda
Failed to build pycuda
ERROR: Could not build wheels for pycuda, which is required to install pyproject.toml-based

みたところI have detected that you have not run configure.py.とあるのでここに問題があるのかもしれませんが,調べても出てこなかったため対応策をご教示ください

2.実行環境

python3.8.8
anaconda
pycuda10.0インストール済み
Microsoft Visual C++ インストール済み

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問