cmake - Pytorch Build from Source 给出错误 make : *** No rule to make target 'install' . Stop

标签 cmake raspberry-pi raspberry-pi3 pytorch

我正在关注 this guide在 Raspberry Pi3B 上从头开始构建 Pytorch。由于某种原因,有一个错误:

Building wheel torch-1.2.0a0+f13fadd
-- Building version 1.2.0a0+f13fadd
cmake --build . --target install --config Release -- -j 4
make: *** No rule to make target 'install'.  Stop.

当我打电话时python3 setup.py build .我正在运行 Python 3.5 版,但不确定为什么这似乎失败了。

最佳答案

最近我遇到了这个错误,所以经过一些研究,在
https://stackoverflow.com/a/46987554/12164529
有人提到了一些关于缓存的事情。
因此我猜这是因为一些 CMake 缓存行为,所以我运行这个命令:

sudo USE_ROCM=1 USE_LMDB=1 USE_OPENCV=1 MAX_JOBS=15 python setup.py clean

错误消失了。

附:这是我在 stackoverflow 上的第一个答案,我不确定这是否是一个好答案,但我希望它可以帮助人们在这里找到。

关于cmake - Pytorch Build from Source 给出错误 make : *** No rule to make target 'install' . Stop,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56802904/

相关文章:

c# - 从 Raspberry Pi 连接到 SQL Server 会导致错误 35(在登录前握手期间)

opencv - 在树莓派3(Raspbian Stretch)上安装opencv-python

c++ - 如何在 mac 中使用 make 和 make install

python - 需要重复Flask表单,一个表单类的多个实例

c - 为什么 CMake 看不到 FLEX 生成的源文件?

audio - 如何在pygame中跳转声音?

python - 多个 Python GPIO 按钮或 Raspberry Pi

python - 树莓派接收蓝牙数据

c++ - cmake的默认构建配置是什么

c - 在 cmake 文件的 execute_process 命令中使用 cmake 变量