fujiisoup / py3nj

Wigner's 3J, 6J, 9J symbols for python
https://py3nj.readthedocs.io/
Apache License 2.0
19 stars 5 forks source link

Installation Failure on Windows #32

Open gerardPlanella opened 1 year ago

gerardPlanella commented 1 year ago

Hello, I am trying to install the py3nj package through pip and I get the following error:

  The Meson build system
  Version: 1.2.1
  Source dir: ***\py3nj
  Build dir: ***\py3nj\.mesonpy-rrv9sh3m
  Build type: native build
  Project name: py3nj
  Project version: 0.2.2
  Fortran compiler for the host machine: gfortran (gcc 6.3.0 "GNU Fortran (MinGW.org GCC-6.3.0-1) 6.3.0")
  Fortran linker for the host machine: gfortran ld.bfd 2.28
  C compiler for the host machine: gcc (gcc 6.3.0 "gcc (MinGW.org GCC-6.3.0-1) 6.3.0")
  C linker for the host machine: gcc ld.bfd 2.28
  Host machine cpu family: x86
  Host machine cpu: x86
  Program python found: YES (C:\Users\***\anaconda3\envs\***\python.exe)
  Run-time dependency OpenMP found: YES 4.5
  Need python for x86, but found x86_64
  Run-time dependency python found: NO (tried sysconfig)

I am using Windows 11, and had to manually download a FORTRAN compiler to solve a previous error.

fujiisoup commented 1 year ago

It seems like you are running python for 64bit on an 32bit machine?

gerardPlanella commented 1 year ago

My machine is a x64 based PC. The print being shown by the FORTRAN compiler is incorrect.

fujiisoup commented 1 year ago

Hum. It is weird.

Are you sure that you are running MinGW_x64? Or if you don't need to stick to MinGW, try quickstart-fortran https://github.com/fujiisoup/py3nj#installing-fortran-to-windows