安装onns
在尝试过很多种方式安装onns后,以下为注意点
- pycharm不能直接安装onns
- Windows与Linux、Mac系统安装不同,详情见链接:onns
- 在anaconda中,以下安装语句会报错failed
conda install -c conda-forge onnx
conda install -c conda-forge protobuf numpy
命令行安装(win+r)
pip install onnx
若出现Read timed out的情况
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
解决办法:1
#输入
pip --default-timeout=100 install -U pip
#回车后输入
pip --default-timeout=100 install onns
#回车
解决办法:2
多次尝试(可尝试断开网络后重试几次)
(我是个小白,如有错误望指教)