关于树莓派pip源

RaspiSQH 117.65m2020-02-242300 次点击
最近想玩ha,然后试着安装。ha是用pip安装的,但是发现国外pip的arm源(piwheels.org)很慢,换成了国内源。但是国内源没有arm的whl,pip只能自行编译,而且一直报错。
大致意思是执行gcc-arm-linux-gnueabihf出错。
但是我安装这个包时,apt报错 but it is not installable
E: Unable to correct problems, you have held broken packag
es.
是否有国内pip源包含armv7的whl文件?求各位大佬指点。
收藏 ♥ 感谢
RaspiSQH 117.65m 2020-02-24 
ha真是玄学啊。。。摸爬滚打按照错误安装完所有缺的东西,然后安装出错就连错误信息都没有了。。。。还有,有的库已经安装过了,为啥安ha的时候还要collect一遍。。。。。

然后这个库还报错
#include <openssl/opensslv.h>
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exi
t status 1
----------------------------------------
ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography which use P
EP 517 and cannot be installed directly

还是gcc-arm-linux-gnueabihf。。。
然后安装gcc-arm-linux-gnueabihf ,but it is not installable
E: Unable to correct problems, you have held broken packages.

然后安装cryptography:
root@raspberrypi:~# python3 -m pip install cryptography
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simp
le, https://www.piwheels.org
Requirement already satisfied: cryptography in /usr/lib/py
thon3/dist-packages (1.7.1)

我:????
RaspiSQH 117.65m 2020-02-24 
然后尝试:sudo apt-get install libssl-dev
RaspiSQH 117.65m 2020-02-24  ♥ 1
擦,成功了???开始整理教程。。。
Spoony 小组长 2020-02-24 
ha官方似乎有树莓派的系统镜像
期待教程
RaspiSQH 117.65m 2020-02-24  ♥ 1
@Spoony 不想重装系统,教程整理ing(因为即使安装好了还是有各种意外,还在踩坑)
安装大概还没有完吧,hass输出的都是安装log
先记录一下:
缺这些库:
setuptools.build_meta
sqlalchemy
hass-nabucasa==0.15

哦哦哦 成功了

登录注册 后可回复。