Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用hls4ml将python代码转换为HDL_Python - Fatal编程技术网

使用hls4ml将python代码转换为HDL

使用hls4ml将python代码转换为HDL,python,Python,我将学习本教程: 当我发出命令时: root@ubuntu:~/Desktop/vivado/hls4ml/example-models$ hls4ml convert -c keras-config.yml hls4ml: command not found 我该怎么办?我试过了 pip install hls4ml 我明白了: WARNING: pip is being invoked by an old script wrapper. This will fail in a futur

我将学习本教程: 当我发出命令时:

root@ubuntu:~/Desktop/vivado/hls4ml/example-models$ hls4ml convert -c keras-config.yml
hls4ml: command not found
我该怎么办?我试过了

pip install hls4ml
我明白了:

WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: hls4ml in /home/mojito/.local/lib/python2.7/site-packages (0.2.0)
Requirement already satisfied: numpy in /home/mojito/.local/lib/python2.7/site-packages (from hls4ml) (1.16.6)
Requirement already satisfied: six in /home/mojito/.local/lib/python2.7/site-packages (from hls4ml) (1.14.0)
Requirement already satisfied: pyyaml in /home/mojito/.local/lib/python2.7/site-packages (from hls4ml) (5.3.1)
Requirement already satisfied: h5py in /home/mojito/.local/lib/python2.7/site-packages (from hls4ml) (2.10.0)
Requirement already satisfied: onnx>=1.4.0 in /home/mojito/.local/lib/python2.7/site-packages (from hls4ml) (1.6.0)
Requirement already satisfied: typing>=3.6.4; python_version < "3.5" in /home/mojito/.local/lib/python2.7/site-packages (from onnx>=1.4.0->hls4ml) (3.7.4.1)
Requirement already satisfied: protobuf in /home/mojito/.local/lib/python2.7/site-packages (from onnx>=1.4.0->hls4ml) (3.11.3)
Requirement already satisfied: typing-extensions>=3.6.2.1 in /home/mojito/.local/lib/python2.7/site-packages (from onnx>=1.4.0->hls4ml) (3.7.4.1)
Requirement already satisfied: setuptools in /home/mojito/.local/lib/python2.7/site-packages (from protobuf->onnx>=1.4.0->hls4ml) (44.1.0)
警告:旧脚本包装器正在调用pip。这将在pip的未来版本中失败。
请看https://github.com/pypa/pip/issues/5599 获取有关解决潜在问题的建议。
为了避免这个问题,您可以使用“-m pip”调用Python,而不是直接运行pip。
弃用:Python 2.7在2020年1月1日结束了它的生命。请升级Python,因为不再维护Python 2.7。pip的未来版本将放弃对Python2.7的支持。有关pip中Python 2支持的更多详细信息,请访问https://pip.pypa.io/en/latest/development/release-process/#python-2-支持
默认为用户安装,因为普通站点包不可写
已满足要求:hls4ml in/home/mojito/.local/lib/python2.7/site-packages(0.2.0)
已满足要求:numpy in/home/mojito/.local/lib/python2.7/site-packages(来自hls4ml)(1.16.6)
已满足要求:六个in/home/mojito/.local/lib/python2.7/site-packages(来自hls4ml)(1.14.0)
已满足要求:pyyaml in/home/mojito/.local/lib/python2.7/site-packages(来自hls4ml)(5.3.1)
已满足要求:h5py in/home/mojito/.local/lib/python2.7/site-packages(来自hls4ml)(2.10.0)
已满足要求:onnx>=1.4.0 in/home/mojito/.local/lib/python2.7/site-packages(来自hls4ml)(1.6.0)
已满足的要求:键入>=3.6.4;python_版本=1.4.0->hls4ml)(3.7.4.1)
已满足要求:protobuf in/home/mojito/.local/lib/python2.7/site-packages(从onnx>=1.4.0->hls4ml)(3.11.3)
已满足要求:在/home/mojito/.local/lib/python2.7/site-packages中键入extensions>=3.6.2.1(从onnx>=1.4.0->hls4ml)(3.7.4.1)
已满足要求:setuptools位于/home/mojito/.local/lib/python2.7/site-packages(来自protobuf->onnx>=1.4.0->hls4ml)(44.1.0)
试试这个:

$ git clone https://github.com/hls-fpga-machine-learning/hls4ml.git
$ cd hls4ml/
$ pip install .
吉特回购:


您还可以将pip用作模块:
$python-mpip[options]

mojito@ubuntu:~/Desktop/vivado/hls4ml$pip安装。。。安装收集的软件包:hls4ml尝试卸载:hls4ml找到现有安装:hls4ml 0.2.0卸载hls4ml-0.2.0:成功卸载hls4ml-0.2.0成功安装hls4ml-0.2.0mojito@ubuntu:~/Desktop/vivado/hls4ml$cd示例型号/mojito@ubuntu:~/Desktop/vivado/hls4ml/示例型号$hls4mlconvert-c keras-config.yml hls4ml:command not found
python-m pip list
的输出是什么,您还可以尝试
find/-name hls4ml 2>/dev/null