简体   繁体   中英

pytorch installation in windows 7 32-bit sysytem

I've installed Python Anaconda in Windows 7, but I can't install pytorch in system.

Does anyone have an how idea to install PyTorch in a Windows 7 32-bit system?

A few steps as described here may help to install Pytorch in Windows considering a specific case of Python 3.6:

  1. First, we need to install Shapely. For this download Shapely as Shapely-1.6.3-cp36-cp36m-win_amd64.whl from here . For 32bit windows use this Shapely‑1.7.1‑cp36‑cp36m‑win32.whl

Then go to the directory where you have downloaded the whl file and then press SHIFT and right click and select open command prompt here and then execute this: pip install Shapely-1.6.3-cp36-cp36m-win_amd64.whl For 32 bit: pip install Shapely‑1.7.1‑cp36‑cp36m‑win32.whl

  1. Secondly, we need to install Fiona. For this go to Gohlke and download Fiona‑1.7.13‑cp36‑cp36m‑win_amd64.whl, or for 32 bit use this Fiona‑1.8.17‑cp36‑cp36m‑win32.whl

Then execute this command: pip install Fiona‑1.7.13‑cp36‑cp36m‑win_amd64.whl For 32 bit: pip install Fiona‑1.8.17‑cp36‑cp36m‑win32.whl

  1. Third and final step is to download PyTorch download and install the latest torch whl (for example torch-1.5.0+cpu-cp37-cp37m-win_amd64.whl) or using pip install torch For other Python or Torch Versions check the wheels here .

Official website offers lot of way to download PyTorch in different kinds of OS: https://pytorch.org/get-started/locally/

Take "pip" for example
You can see "amd64" in file name, which means it only works on 64bits computer.

In the Command Window type

conda install -c peterjc123 pytorch_legacy cuda80

(see peterjc123 comment ), or

conda install pytorch torchvision -c pytorch

(see Tensors and Dynamic neural networks in Python ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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