How to install torch==0.3.1 in python=3.6

12,485

torch 0.3.1 is not listed official anymore. To install torch 0.3.1 one can either build it by source or using a whl file for the specific version.

Using a whl file

whl files can be found here provided by pytorch

The downloaded file can then be installed with pip install [path to downloaded file]


Build by source

To build torch by source one can checkout the desired version via git

git checkout v[version number]

For torch==0.3.1 this would be git checkout v0.3.1

After this follow the install instructions provided by README.md


More information can be found at: https://pytorch.org/get-started/previous-versions/

Share:
12,485
Admin
Author by

Admin

Updated on June 13, 2022

Comments

  • Admin
    Admin almost 2 years

    I am trying to install deepmatcher package in python 3.6. To let this package to run in python you need have a torch==0.3.1 version. So I am trying to install torch==0.3.1 by running :

    pip install torch==0.3.1 
    

    Error during installation:

    Collecting torch==0.3.1
    ERROR: Could not find a version that satisfies the requirement torch==0.3.1 (from versions: 0.1.2, 0.1.2.post1)
    ERROR: No matching distribution found for torch==0.3.1

    I even tried installing it using "peterjc123" package but still unable to uninstall it.

  • donkey
    donkey about 4 years
    Can I do this for python3.7? Each whl file says its not supported by this platform.