py3nj icon indicating copy to clipboard operation
py3nj copied to clipboard

Installation Failure on Windows

Open gerardPlanella opened this issue 2 years ago • 3 comments

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.

gerardPlanella avatar Sep 20 '23 15:09 gerardPlanella

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

fujiisoup avatar Sep 20 '23 15:09 fujiisoup

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

gerardPlanella avatar Nov 07 '23 11:11 gerardPlanella

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

fujiisoup avatar Nov 07 '23 16:11 fujiisoup