解决安装pip模块的时候报错 linux-gnueabihf-gcc failed with exit code 1

pip安装软件速度是比较快的,我们一般都会用这个命令安装。这里在安装的时候有报错。通常是由于 ​编译依赖缺失 或 ​环境配置问题 导致。

error: Setup script exited with error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1

安装python3-dev:

sudo apt install python3-dev

再次安装ssl模块收到新的错误:

File "<string>", line 1, in <module> File "/tmp/pip-install-wu0ofdmu/ssl/setup.py", line 33 print 'looking for', f SyntaxError: Missing parentheses in call to 'print'. Did you mean print('looking for', f)?

更新pip解决:

pip3 install --upgrade pip

应该是版本低导致的问题。

投上你的一票

本文出处:老蒋部落 » 解决安装pip模块的时候报错 linux-gnueabihf-gcc failed with exit code 1 | 欢迎分享( 公众号:老蒋朋友圈 )

公众号 「老蒋朋友圈」获取站长新知 / 加QQ群 【1012423279】获取商家优惠推送