简体   繁体   English

在python3.7中安装pytorch的问题

[英]Issue installing pytorch in python3.7

任何有关如何在 python3.7 上安装火炬的帮助将不胜感激。

Tried installing torch from source code.尝试从源代码安装火炬。

https://forums.developer.nvidia.com/t/pytorch-for-jetson-version-1-10-now-available/72048 https://forums.developer.nvidia.com/t/pytorch-for-jetson-version-1-10-now-available/72048

goto section Build from Source( Though it says python3.6 you can check with python 3.7 and python3.8)转到从源代码构建部分(虽然它说 python3.6 你可以检查 python 3.7 和 python3.8)

Once torch is installed, install torchvision from source安装torch后,从源安装torchvision

    git clone https://github.com/pytorch/vision
    cd vision

change the version you want to install and run the setup更改要安装的版本并运行安装程序

    sudo python setup.py install

Solution for the issue: error: 'vst1q_f32_x2' was not declared in this scope问题解决方法:error: 'vst1q_f32_x2' was not created in this scope

While cloning the pytorch make sure you write the branch name properly, cloning using the below command results in the above error.在克隆 pytorch 时,请确保正确编写分支名称,使用以下命令进行克隆会导致上述错误。

git clone --recursive --branch 1.6.0 http://github.com/pytorch/pytorch.git

Use --branch v1.6.0 instead to clone correctly.改用 --branch v1.6.0 来正确克隆。

git clone --recursive --branch v1.6.0 http://github.com/pytorch/pytorch.git

Reference: https://forums.developer.nvidia.com/t/pytorch-for-jetson-version-1-10-now-available/72048/470参考: https : //forums.developer.nvidia.com/t/pytorch-for-jetson-version-1-10-now-available/72048/470

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM