简体   繁体   English

错误:命令'x86_64-linux-gnu-gcc'在执行pip3安装python-geohash时失败,退出状态为1

[英]error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 while doing pip3 install python-geohash

I tried all combinations and nothing made import geohash work: 我尝试了所有组合,没有任何导入geohash工作:

  1. pip install geohash pip install geohash
  2. pip3 install geohash pip3安装geohash
  3. apt-get install python-dev apt-get install python-dev
  4. pip3 install python-geohash pip3安装python-geohash

the 4th one isn't even installing but threw an error on me saying: src/geohash.cpp:538:20: fatal error: Python.h: No such file or directory #include ^ compilation terminated. 第四个甚至没有安装,但在我说错误:src / geohash.cpp:538:20:致命错误:Python.h:没有这样的文件或目录#include ^编译终止。 error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 错误:命令'x86_64-linux-gnu-gcc'以退出状态1失败

Thanks @William D. Irons. 谢谢@William D. Irons。 The issue got fixed when I did sudo apt-get install libpython3.7-dev 当我做了sudo apt-get install libpython3.7-dev时,问题得到解决

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 执行 pip3 install tslearn 时出错 - 命令“x86_64-linux-gnu-gcc”失败,退出状态为 1 - Error doing pip3 install tslearn - command 'x86_64-linux-gnu-gcc' failed with exit status 1 Oursql 安装:错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为 1 - Oursql install : error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为 1,错误:mysqlclient 构建轮失败 - error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 and ERROR: Failed building wheel for mysqlclient 在Google Colab笔记本中安装tsne:错误:命令'x86_64-linux-gnu-gcc'失败,退出状态为1 - Installing tsne in Google Colab notebook: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 安装Python 3 Docker Ubuntu错误命令'x86_64-linux-gnu-gcc - Installing Python 3 Docker Ubuntu error command 'x86_64-linux-gnu-gcc pip3 无法安装 imread - 'gcc' 失败,退出状态为 1 - pip3 fails to install imread - 'gcc' failed with exit status 1 “Pip install”导致“错误:命令‘gcc’失败,退出状态为 1” - “Pip install” causing “error: command 'gcc' failed with exit status 1” pip3 install pgzero --- 导致命令“/usr/bin/gcc”失败,退出代码为 1(Python 3.9;macOS 10.15.7) - pip3 install pgzero --- leads to command '/usr/bin/gcc' failed with exit code 1 (Python 3.9; macOS 10.15.7) 通过 pip 错误(macos)安装瓶颈错误:瓶颈的构建轮失败; 错误:命令“gcc”失败,退出状态为 1 - install bottleneck by pip error (macos) ERROR: Failed building wheel for bottleneck; error: command 'gcc' failed with exit status 1 错误:安装python手套时,命令“ gcc”失败,退出状态为1 - error: command 'gcc' failed with exit status 1 while installing python glove
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM