ttpy icon indicating copy to clipboard operation
ttpy copied to clipboard

ttpy on Windows

Open michele-nazareth opened this issue 8 years ago • 5 comments

Hello, I use Python on Windows and I would like to know how to install ttpy. Please could you help me? Thank you for your attention.

michele-nazareth avatar May 31 '17 06:05 michele-nazareth

It is not easy since it requires compilation of associated Fortran library. In principle, it is possible, but requires a lot of special tricks and is not supported at the moment.

With best wishes, Ivan.

oseledets avatar Jun 05 '17 16:06 oseledets

You can also try TensorFlow version of Tensor Train toolbox. It is not yet tested on Windows but should work without tricks. github.com/Bihaqo/t3f

Bihaqo avatar Jun 05 '17 16:06 Bihaqo

@oseledets It is possible to build ttpy wheels for specific platform on 'server side' with AppVeyor CI. AppVeyor provides suitable environment for building binaries for Windows. As wheel is built it could be pushed directly to repo releases. The every one can install package as following

pip install https://github.com/oseledets/ttpy/releases/download/v1.0/ttpy-1.0-cp36-none-win_amd64.whl

@Mitchux As the most motivated person you are welcome to contibute to this issue. That will be greate for whole community.

daskol avatar Dec 17 '17 20:12 daskol

Hi together! I don't know whether this issue has been solved in the meantime. Howsoever, I tried to install ttpy on Windows and Ubuntu recently. In both cases, I installed gfortran as Fortran Compiler (I also tried lfortran later on) with pip. But I always ended up with the following error (I inserted linebreaks for the sake of readability):

F90/x86-64  Flang - 1.5 2017-05-01: compilation aborted
error: Command "C:\Users\usrname\anaconda3\envs\tt-proj\Library\bin\flang.exe 
-O3 -IC:\Users\usrname\anaconda3\envs\tt-proj\Lib\site-packages\numpy\core\include 
-Ibuild\src.win-amd64-3.11\numpy\distutils\include 
-Ibuild/temp.win-amd64-cpython-311 -Ibuild/temp.win-amd64-3.11 
-Ibuild/temp.win-amd64-3.1 -Ibuild/temp.win-amd64-3.1 -IC:\Users\usrname\anaconda3\envs\tt-proj\include 
-IC:\Users\usrname\anaconda3\envs\tt-proj\Include -c -c tt\tt-fort\print\dispmodule.f90 
-o build\temp.win-amd64-cpython-311\tt\tt-fort\print\dispmodule.o 
-module build\temp.win-amd64-cpython-311 -Ibuild\temp.win-amd64-cpython-311" failed with exit status 1

All attempts of installing ttpy using pip were made in a completely new environment (numpy and cython installled) created with conda. Using git, I faced the same problem. Do you know what this error means?

polygnomnom avatar Apr 18 '23 09:04 polygnomnom

It is pretty strange actually. The error is not very descriptive. Also, it says that ttpy is compiled with flang what could be either LLVM's flang and just flang. Anyway, none of flang's is supported.

I can suggest to use docker image as a workaround. Also, [Dockerfile] can shed light on how to build and install ttpy.

daskol avatar Apr 18 '23 09:04 daskol