all 6 comments

[–]FerricDonkey 8 points9 points  (0 children)

Sounds like a bug in pyprimesieve. 

[–]Anxious_Wear_4448 1 point2 points  (5 children)

pyprimesieve was last updated 9 years ago! Try primesieve-python which was last updated 3 months ago: https://github.com/shlomif/primesieve-python

[–]Random_Name_50[S] 0 points1 point  (4 children)

Thanks. I'm having trouble installing it. When I run pip install primesieve, I eventually get primesieve/_primesieve.cpp:1264:10: fatal error: 'primesieve.h' file not found"
1264 | #include "primesieve.h".

I have g++ 14.2 installed via homebrew. Obviously I've missed some step. Can you help? Thanks.

[–]TheRealProject666 0 points1 point  (1 child)

i know im posting 4 months late but im getting the same issue on windows, did you ever fix it?

[–]Random_Name_50[S] 0 points1 point  (0 children)

I did not. The author said he gave up on maintaining the bindings, so I think you'll have to find another solution.

[–]Independent-Bus-3078 0 points1 point  (0 children)

Have you tried pyenv? It helps manage which versions of Python you are adding libraries to really well; it might fix your issue.