我正在关注 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/