Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Torch on windows 8.1?

Torch is a scientific computing framework with wide support for machine learning algorithms. It is easy to use and efficient, thanks to an easy and fast scripting language, LuaJIT, and an underlying C/CUDA implementation.

Q:

Is there a way to install torch on MS Windows 8.1?

like image 714
101010 Avatar asked Jan 20 '15 20:01

101010


People also ask

How do I install torch?

To install PyTorch, you have to run the installation command of PyTorch on your command prompt. This command is available on https://pytorch.org/. Select language and cuda version as per your requirement. Now, run python -version, and Conda -version command to check Conda and python packages are installed or not.

Can I pip install PyTorch?

Package ManagerTo install the PyTorch binaries, you will need to use one of two supported package managers: Anaconda or pip.

Can PyTorch run on Windows?

Currently, PyTorch on Windows only supports Python 3. x; Python 2. x is not supported. After the installation is complete, verify your Anaconda and Python versions.


1 Answers

I got it installed and running on Windows (although not 8.1, but I don't expect the process to be different) following instructions in this repository; it's now deprecated, but wasn't deprecated few months ago when I built it. The new instructions point to torch/torch7 repository, but it has a different structure and I haven't been able to build it on Windows yet.

There are instructions on how to install Torch7 from luarocks, but you may run into issues on windows as well; I haven't tried this process. It seems like there is no official support for Windows yet, but some work is being done by contributors (there is a link to a pull request in that thread).

Based on my experience, compiling that deprecated repo may be your best option on Windows at the moment.

Update (7/9/2015): I've recently submitted several changes that fix compilation issues with mingw, so you may try the most recent version of torch7 and follow the build instructions in the ticket. Note that the changes only apply to the core lib and additional libraries may need similar changes.

like image 104
Paul Kulchenko Avatar answered Sep 22 '22 08:09

Paul Kulchenko