Python 我能';t在Debian上使用pip安装

Python 我能';t在Debian上使用pip安装,python,pip,debian,pyv8,Python,Pip,Debian,Pyv8,我几乎每次使用pip(Python的包安装程序)时都会出错,我真的不知道如何修复它们 以下是尝试安装pyv8时出现的错误: $ pip3 install pyv8 Collecting pyv8 Downloading https://files.pythonhosted.org/packages/c6/fb/5c0512a373e3d0aad0b683f439e7bdd67f95a69e6473b76dc2cfdca2c43f/PyV8-0.5.zip Building wheels fo

我几乎每次使用pip(Python的包安装程序)时都会出错,我真的不知道如何修复它们

以下是尝试安装pyv8时出现的错误:

$ pip3 install pyv8
Collecting pyv8
  Downloading https://files.pythonhosted.org/packages/c6/fb/5c0512a373e3d0aad0b683f439e7bdd67f95a69e6473b76dc2cfdca2c43f/PyV8-0.5.zip
Building wheels for collected packages: pyv8
  Running setup.py bdist_wheel for pyv8 ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-wmzf4xop/pyv8/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-h9c9ol37 --python-tag cp37:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  copying PyV8.py -> build/lib.linux-x86_64-3.7
  running build_ext
  building '_PyV8' extension
  creating build/temp.linux-x86_64-3.7
  creating build/temp.linux-x86_64-3.7/src
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBOOST_PYTHON_STATIC_LIB -Ilib/python/inc -Ilib/boost/inc -Ilib/v8/inc -I/usr/include/python3.7m -c src/Exception.cpp -o build/temp.linux-x86_64-3.7/src/Exception.o
  In file included from src/Exception.cpp:1:
  src/Exception.h:6:10: fatal error: v8.h: Aucun fichier ou dossier de ce type
   #include <v8.h>
            ^~~~~~
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for pyv8
  Running setup.py clean for pyv8
Failed to build pyv8
Installing collected packages: pyv8
  Running setup.py install for pyv8 ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-wmzf4xop/pyv8/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-record-wig6t3n9/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    copying PyV8.py -> build/lib.linux-x86_64-3.7
    running build_ext
    building '_PyV8' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/src
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBOOST_PYTHON_STATIC_LIB -Ilib/python/inc -Ilib/boost/inc -Ilib/v8/inc -I/usr/include/python3.7m -c src/Exception.cpp -o build/temp.linux-x86_64-3.7/src/Exception.o
    In file included from src/Exception.cpp:1:
    src/Exception.h:6:10: fatal error: v8.h: Aucun fichier ou dossier de ce type
     #include <v8.h>
              ^~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-wmzf4xop/pyv8/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-record-wig6t3n9/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-wmzf4xop/pyv8/
$pip3安装pyv8
收集pyv8
正在下载https://files.pythonhosted.org/packages/c6/fb/5c0512a373e3d0aad0b683f439e7bdd67f95a69e6473b76dc2cfdca2c43f/PyV8-0.5.zip
为收集的包构建控制盘:pyv8
正在运行pyv8的setup.py bdist_控制盘。。。错误
从命令/usr/bin/python3-u-c“import setuptools,tokenize;uuu file uu=”/tmp/pip-install-wmzf4xop/pyv8/setup.py';f=getattr(tokenize,'open',open)(uuu文件uuuu);code=f.read()。replace('\r\n','\n');f.close();exec(compile(code,uu文件u,'exec'))“bdist python wheel-d-d-d/tmp/pip-wheel-h9cp37:
运转的车轮
运行构建
运行build\u py
创建构建
创建build/lib.linux-x86_64-3.7
复制PyV8.py->build/lib.linux-x86_64-3.7
运行build_ext
构建“\u PyV8”扩展
创建build/temp.linux-x86_64-3.7
创建build/temp.linux-x86_64-3.7/src
x86_64-linux-gnu-gcc-pthread-DNDEBUG-g-fwrapv-O2-Wall-g-fstack protector-strong-Wformat-Werror=format security-Wdate time-D_FORTIFY_SOURCE=2-fPIC-DBOOST_PYTHON_STATIC_LIB-Ilib/PYTHON/inc-Ilib/boost/inc-Ilib/v8/inc-I/usr/inc/inc/inc/inc/inc/inc-inc/inc/inc/inc/inc/inc/inc/inc/inc/inc/inc/inc/inc/inc/inc/inc/inc
在src/Exception.cpp中包含的文件中:1:
src/Exception.h:6:10:致命错误:v8.h:Aucun fichier ou docsier de ce type
#包括
^~~~~~
编译终止。
错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为1
----------------------------------------
为pyv8构建控制盘失败
为pyv8运行setup.py clean
未能生成pyv8
安装收集的软件包:pyv8
正在为pyv8运行setup.py安装。。。错误
从命令/usr/bin/python3-u-c“import setuptools,tokenize;uuu file_uuu=”/tmp/pip-install-wmzf4xop/pyv8/setup.py';f=getattr(tokenize,'open',open)(uuu文件uuuu);code=f.read().replace('\r\n','\n');f.close();exec(compile(code,'uuu文件uuu,'exec'))”install--record/tmp/pip-record-wig6t3n9/install-record.txt--外部管理的单一版本--编译--用户--前缀=:
正在运行的安装
运行构建
运行build\u py
创建构建
创建build/lib.linux-x86_64-3.7
复制PyV8.py->build/lib.linux-x86_64-3.7
运行build_ext
构建“\u PyV8”扩展
创建build/temp.linux-x86_64-3.7
创建build/temp.linux-x86_64-3.7/src
x86_64-linux-gnu-gcc-pthread-DNDEBUG-g-fwrapv-O2-Wall-g-fstack protector-strong-Wformat-Werror=format security-Wdate time-D_FORTIFY_SOURCE=2-fPIC-DBOOST_PYTHON_STATIC_LIB-Ilib/PYTHON/inc-Ilib/boost/inc-Ilib/v8/inc-I/usr/inc/inc/inc/inc/inc/inc-inc/inc/inc/inc/inc/inc/inc/inc/inc/inc/inc/inc/inc/inc/inc/inc/inc
在src/Exception.cpp中包含的文件中:1:
src/Exception.h:6:10:致命错误:v8.h:Aucun fichier ou docsier de ce type
#包括
^~~~~~
编译终止。
错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为1
----------------------------------------
命令“/usr/bin/python3-u-c”导入setuptools,标记化__文件_uu='/tmp/pip-install-wmzf4xop/pyv8/setup.py';f=getattr(标记化“打开”,打开)(_文件);code=f.read().replace('\r\n','\n');f、 close();exec(compile(code,_ufile,_u,'exec'))“安装--record/tmp/pip-record-wig6t3n9/install-record.txt--外部管理的单一版本--编译--user--prefix=”失败,错误代码为/tmp/pip-install-wmzf4xop/pyv8中的1/

抱歉,如果我不能给出更精确的答案

这是否回答了您的问题?