Skip to content

Installation Error: Failed to build pytensor #324

Open
@ahlamaq

Description

@ahlamaq

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions