Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install pysam on alpine linux #62

Open
emrebayramc opened this issue Oct 8, 2020 · 2 comments
Open

Unable to install pysam on alpine linux #62

emrebayramc opened this issue Oct 8, 2020 · 2 comments

Comments

@emrebayramc
Copy link

Because alpine is not "manylinux" it is not possible to install pysam on alpine.

I was able to install with a workaround:

  • Installed glibc on alpine
  • installed conda on alpine
    then was able to install pysam using conda.

The problem is once you install glibc on alpine it is creating many problems along the way.

So it would be great if there was a pysam alpine package.

@dguittet
Copy link
Collaborator

Thanks @kazanture for sharing the workaround. I'm not familiar with alpine linux so I don't know what that process would look like. PySAM distributes C binaries built from NREL/sam and NREL/ssc, but you could always try building PySAM on your alpine machine from source to avoid the glibc issue. The instructions for Installing NREL-PySAM Locally are here: https://github.com/NREL/pysam/wiki/Building,-Packaging-and-Distributing

@Peque
Copy link

Peque commented Jan 9, 2022

@kazanture I would recommend you against using Alpine. They chose to use musl libc, which will cause many issues, specially with the Python scientific ecosystem.

I would recommend python-slim instead, if the image size is a concern. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants