python - 使用 pip3 安装软件包时出现“x86_64-linux-gnu-gcc”错误

标签 python pip httrack

当我尝试在 Ubuntu 16.04 中安装 httrack 时,我无法获取这些软件包:

pip3 install httrack-py


Collecting httrack-py
  Using cached https://files.pythonhosted.org/packages/58/b8/9499cd45ffb4efefff06090f04111c6572e7947eb4485d3333edc9505ed0/httrack-py-0.6.1.tar.gz
Installing collected packages: httrack-py
  Running setup.py install for httrack-py ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-96j_4z55/httrack-py/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-f9__5p13-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.5
    copying httrack.py -> build/lib.linux-x86_64-3.5
    running build_ext
    building 'httracklib' extension
    creating build/temp.linux-x86_64-3.5
    creating build/temp.linux-x86_64-3.5/src
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6tVwKN/python3.5-3.5.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/petri/downloads/httrack-source -I/home/petri/downloads/httrack-source/src -I/usr/include -I/usr/include/python3.5 -I/usr/include/python3.5m -c src/httrack-py.c -o build/temp.linux-x86_64-3.5/src/httrack-py.o
    src/httrack-py.c:45:29: fatal error: httrack-library.h: No such file or directory
     #include "httrack-library.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-build-96j_4z55/httrack-py/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-f9__5p13-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-96j_4z55/httrack-py/
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

最佳答案

运行代码: sudo apt-get 更新 如果它不起作用 尝试更新软件中心的存储库。

关于python - 使用 pip3 安装软件包时出现“x86_64-linux-gnu-gcc”错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51434717/

相关文章:

HTTrack:如何仅从某个子文件夹级别下载文件夹?

python - tensorflow:LSTM 单元中变量的初始化程序

python - 寻找毕达哥拉斯三胞胎

python - BottlyPy - 如何阅读 UWSGI_SCHEME?

python - 为什么即使 pandas 中存在列,我也会收到 Key 错误?

python - pip install -r requirements.txt 来自 puppet ?

Python - pip install pandas,不工作

android - 如何在flutter mobile中保存网站以供离线使用

python , conda : ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'd:\\anaconda3\\envs\\python39\\scripts\\pip.exe'