sandialabs / WecOptTool

WEC Design Optimization Toolbox
https://sandialabs.github.io/WecOptTool/
GNU General Public License v3.0
12 stars 20 forks source link

Installation errors #318

Closed Khalid-1994-06-17 closed 4 months ago

Khalid-1994-06-17 commented 4 months ago

Hello my name is Khalid Al Nahyan, I am a student studying his PhD in MBZUAI, I came with is software that I would like to use as a part of my PhD research topic but when I tried to install it on my MacBook with the M2Pro chip and my iMac Pro with Intel chip using pip, I got the following error:

Collecting wecopttool Downloading wecopttool-2.6.0-py3-none-any.whl.metadata (4.1 kB) Requirement already satisfied: numpy>=1.20 in /Users/khalidnahyan/anaconda3/lib/python3.10/site-packages (from wecopttool) (1.26.2) Requirement already satisfied: scipy in /Users/khalidnahyan/anaconda3/lib/python3.10/site-packages (from wecopttool) (1.11.4) Requirement already satisfied: xarray in /Users/khalidnahyan/anaconda3/lib/python3.10/site-packages (from wecopttool) (2022.11.0) Collecting autograd (from wecopttool) Using cached autograd-1.6.2-py3-none-any.whl.metadata (706 bytes) Collecting capytaine (from wecopttool) Using cached capytaine-2.0.tar.gz (352 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [27 lines of output]

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details. Note: you may need to restart the kernel to use updated packages.

How could I resolve this issue and when I tried conda it will take a long time to install

Please give me some trouble shooting step by step

ryancoe commented 4 months ago

On the m2 chip, you will definitely need to a fortran compiler installed (see, e.g., https://fortran-lang.org/learn/os_setup/install_gfortran/#macos).

For the Intel processor, conda or mamba should work fine (see instructions here: https://github.com/sandialabs/WecOptTool/blob/main/INSTALLATION.md). Maybe you're trying to do the install in an existing conda environment and that's creating conflicts? Make sure to make a dedicated conda environment first.

ryancoe commented 4 months ago

@Khalid-1994-06-17 - Did this resolve your issue?

Khalid-1994-06-17 commented 4 months ago

Hi sorry for the late reply wecopttool is now working very well on both computers thanks. If there is anything else I will let you guys know