pip install pycuda失败,提示它检测到尚未运行configure.py

时间:2019-01-28 05:58:27

标签: python python-3.x pip pycuda

我正在尝试使用pip3在虚拟python环境下安装pycuda,遇到以下警告,最后安装失败:

. . .
. . .
 Running setup.py (path:/tmp/pip-build-8zy4q190/pycuda/setup.py) egg_info for package pycuda
    Running command python setup.py egg_info
    *************************************************************
    *** 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 1 seconds...    
    running egg_info
    creating pip-egg-info/pycuda.egg-info
    writing top-level names to pip-egg-info/pycuda.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/pycuda.egg-info/dependency_links.txt
    writing pip-egg-info/pycuda.egg-info/PKG-INFO
    writing requirements to pip-egg-info/pycuda.egg-info/requires.txt
    writing manifest file 'pip-egg-info/pycuda.egg-info/SOURCES.txt'
    reading manifest file 'pip-egg-info/pycuda.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    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'
. . .
. . .

我在PATH中有nvcc,并且通过apt安装了libcuda1和nvidia-cuda-dev。我现在要发布的内容是,在使用pip3进行安装时如何运行configure.py。最后出现的错误是:

 creating build/temp.linux-x86_64-3.5/bpl-subset/bpl_subset/libs/python
    creating build/temp.linux-x86_64-3.5/bpl-subset/bpl_subset/libs/python/src
    creating build/temp.linux-x86_64-3.5/bpl-subset/bpl_subset/libs/python/src/object
    creating build/temp.linux-x86_64-3.5/bpl-subset/bpl_subset/libs/python/src/converter
    creating build/temp.linux-x86_64-3.5/bpl-subset/bpl_subset/libs/system
    creating build/temp.linux-x86_64-3.5/bpl-subset/bpl_subset/libs/system/src
    creating build/temp.linux-x86_64-3.5/bpl-subset/bpl_subset/libs/smart_ptr
    creating build/temp.linux-x86_64-3.5/bpl-subset/bpl_subset/libs/smart_ptr/src
    creating build/temp.linux-x86_64-3.5/bpl-subset/bpl_subset/libs/thread
    creating build/temp.linux-x86_64-3.5/bpl-subset/bpl_subset/libs/thread/src
    creating build/temp.linux-x86_64-3.5/bpl-subset/bpl_subset/libs/thread/src/pthread
    x86_64-linux-gnu-gcc -pthread -fwrapv -Wall -O3 -DNDEBUG -g -fdebug-prefix-map=/build/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBOOST_THREAD_DONT_USE_CHRONO=1 -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE=1 -DHAVE_CURAND=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DPYGPU_PYCUDA=1 -DPYGPU_PACKAGE=pycuda -Dboost=pycudaboost -DBOOST_THREAD_BUILD_DLL=1 -Isrc/cpp -Ibpl-subset/bpl_subset -I/usr/include -I/russellb/data/py_devel/pyPlay/lib/python3.5/site-packages/numpy/core/include -I/russellb/data/py_devel/pyPlay/lib/python3.5/site-packages/numpy/core/include -I/russellb/data/py_devel/pyPlay/include -I/usr/include/python3.5m -c src/cpp/cuda.cpp -o build/temp.linux-x86_64-3.5/src/cpp/cuda.o
    x86_64-linux-gnu-gcc: error trying to exec 'cc1plus': execvp: No such file or directory
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
error
Cleaning up...
  Removing source in /tmp/pip-build-8zy4q190/pycuda
Command "/russellb/data/py_devel/pyPlay/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8zy4q190/pycuda/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-uiogxtzu-record/install-record.txt --single-version-externally-managed --compile --install-headers /russellb/data/py_devel/pyPlay/include/site/python3.5/pycuda" failed with error code 1 in /tmp/pip-build-8zy4q190/pycuda/
Exception information:
Traceback (most recent call last):
  File "/russellb/data/py_devel/pyPlay/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/russellb/data/py_devel/pyPlay/lib/python3.5/site-packages/pip/commands/install.py", line 360, in run
    prefix=options.prefix_path,
  File "/russellb/data/py_devel/pyPlay/lib/python3.5/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/russellb/data/py_devel/pyPlay/lib/python3.5/site-packages/pip/req/req_install.py", line 878, in install
    spinner=spinner,
  File "/russellb/data/py_devel/pyPlay/lib/python3.5/site-packages/pip/utils/__init__.py", line 725, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "/russellb/data/py_devel/pyPlay/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8zy4q190/pycuda/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-uiogxtzu-record/install-record.txt --single-version-externally-managed --compile --install-headers /russellb/data/py_devel/pyPlay/include/site/python3.5/pycuda" failed with error code 1 in /tmp/pip-build-8zy4q190/pycuda/

有任何建议,见解来解决/解决此问题吗?

0 个答案:

没有答案