我正在尝试如下安装Pytorch和Pytorch Vision:
#/bin/bash
if [ "$EUID" -ne 0 ]; then
echo "[!] Run as root"
exit 0
fi
if [ ! command -v gdb &> /dev/null ]; then
echo "[!] Unable to find GDB, make sure you have it installed"
exit 0
fi
proc_name="target"
proc_id=""
libpath="$(pwd)/build/libinject.so"
if ! proc_id=$(pgrep $proc_name) > /dev/null 2>&1; then
echo "[!] The target process is not running"
exit 0
fi
if [ ! -f $libpath ]; then
echo "[!] Invalid shared library file"
fi
gdb -n -q -batch \
-ex "attach $proc_id" \
-ex "set \$dlopen = (void*(*)(char*, int)) dlopen" \
-ex "call \$dlopen(\"$libpath\", 1)" \
-ex "detach" \
-ex "quit" > /dev/null 2>&1
echo "[*] done"
exit 1
它给我一个错误消息:pip3 install numpy torch-1.6.0rc2-cp36-cp36m-linux_aarch64.whl
git clone --branch v0.7.0-rc2 https://github.com/pytorch/vision torchvision
sudo python3 setup.py install
并且没有安装pytorch vision,但是Torch 1.6.0已正确安装。
我的环境是:
有人可以帮助我安装pytorch vision吗?