pip install torch==2.3.0 -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir
安装 torch 时发现很慢,可用清华源 -i https://pypi.tuna.tsinghua.edu.cn/simple。
因为服务器多人使用,df -h 发现空间不够了,但又没法删东西,可用 --no-cache-dir,会直接安装torch,而不把缓存放在 /home目录下导致报错。
pip install torch==2.3.0 -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir
安装 torch 时发现很慢,可用清华源 -i https://pypi.tuna.tsinghua.edu.cn/simple。
因为服务器多人使用,df -h 发现空间不够了,但又没法删东西,可用 --no-cache-dir,会直接安装torch,而不把缓存放在 /home目录下导致报错。