exoplanet-dev / exoplanet

Fast & scalable MCMC for all your exoplanet needs!
https://docs.exoplanet.codes
MIT License
206 stars 52 forks source link

Installation Error: Failed to build pytensor #324

Open ahlamaq opened 6 months ago

ahlamaq commented 6 months ago

Describe the bug I recently uninstalled an older version of anaconda (which had the exoplanet package installed) so that I can upgrade to the latest python version of 3.11 with a new installation. After Installing the latest anaconda distribution, I followed the same instructions to install exoplanet using pip, but I get the following error:

Building wheel for pytensor (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for pytensor (pyproject.toml) did not run successfully. │ exit code: 1

  gcc-12: warning: this compiler does not support Arm64 ('-arch' option ignored)
  gcc-12: warning: /usr/local/opt/lapack/include: linker input file unused because linking not done

ld: can't map file, errno=22 file '/usr/local/opt/lapack/include' for architecture x86_64 collect2: error: ld returned 1 exit status error: command '/usr/local/bin/gcc-12' failed with exit code 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pytensor Failed to build pytensor ERROR: Could not build wheels for pytensor, which is required to install pyproject.toml-based projects

To Reproduce python -m pip install -U "exoplanet[pymc]"

Expected behavior A clean installation of exoplanet

Your setup (please complete the following information):

Additional context Add any other context about the problem here.