我用清华源进行pip安装,提示缺少tf库,
ERROR: Ignored the following versions that require a different python version: 0.14 Requires-Python >=3.9; 2.14.1 Requires-Python >=3.9; 2.15.0 Requires-Python >=3.9; 2.15.1 Requires-Python >=3.9; 2.15.2 Requires-Python >=3.9; 2.16.0 Requires-Python >=3.9; 2.16.1 Requires-Python >=3.9; 2.16.2 Requires-Python >=3.9; 2.17.0 Requires-Python >=3.9
ERROR: Could not find a version that satisfies the requirement tf-estimator-nightly==2.8.0.dev2021122109 (from tensorflow) (from versions: none)
ERROR: No matching distribution found for tf-estimator-nightly==2.8.0.dev2021122109
见下图:
换了其他什么腾讯、百度都解决不了,最后发现华为源可以,困扰了一晚上,huawei yyds!
用下面命令直接安装
pip install -r requirements_cp38-2.0.0b0.txt -i https://repo.huaweicloud.com/repository/pypi/simple/
安装成功,提示的红字可以忽略,或者自己手动安装红字提示缺少的库
先打开python,再输入:
from rknn.api import RKNN
安装测试成功