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

Error: pip install pypardiso (Manjaro Linux - Python 3.9) #24

Closed
adtzlr opened this issue Jul 17, 2021 · 3 comments
Closed

Error: pip install pypardiso (Manjaro Linux - Python 3.9) #24

adtzlr opened this issue Jul 17, 2021 · 3 comments
Assignees

Comments

@adtzlr
Copy link

adtzlr commented Jul 17, 2021

Hi,

pypardiso can't be installed using pip on Manjaro because mkl-service is not available for Python 3.9 on PyPI.

[andreas@andreas-studioxps1640 ~]$ pip install pypardiso
Defaulting to user installation because normal site-packages is not writeable
Collecting pypardiso
  Downloading pypardiso-0.3.3-py3-none-any.whl (10 kB)
Requirement already satisfied: scipy in ./.local/lib/python3.9/site-packages (from pypardiso) (1.7.0)
Requirement already satisfied: numpy in /usr/lib/python3.9/site-packages (from pypardiso) (1.20.3)
Requirement already satisfied: psutil in /usr/lib/python3.9/site-packages (from pypardiso) (5.8.0)
  Downloading pypardiso-0.3.2-py3-none-any.whl (10 kB)
  Downloading pypardiso-0.3.1-py3-none-any.whl (10 kB)
Collecting mkl
  Downloading mkl-2021.3.0-py2.py3-none-manylinux1_x86_64.whl (278.6 MB)
     |████████████████████████████████| 278.6 MB 24 kB/s 
ERROR: Cannot install pypardiso==0.3.1, pypardiso==0.3.2 and pypardiso==0.3.3 because these package versions have conflicting dependencies.

The conflict is caused by:
    pypardiso 0.3.3 depends on mkl-service
    pypardiso 0.3.2 depends on mkl-service
    pypardiso 0.3.1 depends on mkl-service

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

see here, only files for Python 3.7 and 3.8. Is mkl-service really necessary? pip install mkl completes without errors...

@haasad
Copy link
Owner

haasad commented Oct 23, 2021

Hi @adtzlr

for whatever reason I don't get notified anymore about new issues in my repos. Only just now saw this issue because I was mentioned in #26, which is possibly related.

Looking at https://pypi.org/project/mkl-service/#files, there seems to be no support for python 3.9 and also no support for macOS for mkl-service with pip.

I'll look into ways to get rid of it, however there's two hurdles that come to mind:

  • IIRC importing mkl-service is what's loads the MKL library in the background and makes it accessible for pypardiso, worst case I'll have to port that over to pypardiso
  • The guys from conda-forge suggested to (ab)use mkl-service in the conda-forge recipe, because mkl has a different source for pip and conda, see Add pypardiso recipe conda-forge/staged-recipes#15106 (comment)

@haasad haasad self-assigned this Oct 23, 2021
@haasad
Copy link
Owner

haasad commented Oct 24, 2021

Hi @adtzlr ,

I removed the mkl-service dependency and changed how the mkl_rt shared library is detected, so it should now work on all operating systems when installing pypardiso with pip. I released version 0.4.0 with these changes today.

I hope this makes pypardiso useful for you again, IIRC it provided quite a speedup for the calculations in your package.

And sorry again for not replying earlier, I'll have to check my notification settings for this repo. Feel free to ping me directly with a @mention, if this happens again.

@adtzlr
Copy link
Author

adtzlr commented Oct 29, 2021

Thanks, that's great!

@adtzlr adtzlr closed this as completed Nov 15, 2021
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

2 participants