exoplanet-dev / exoplanet-dev/exoplanet

Installation Error: Failed to build pytensor

Open
#324 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
239
Forks
57
PR merge metrics
No merged PRs in 30d

Description

**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):**
- Version of exoplanet: N/A
- Operating system: iMac Apple M3
- Python version & installation method (pip, conda, etc.): Python 3.11.7, installed using Anaconda

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.