XanaduAI / thewalrus

A library for the calculation of hafnians, Hermite polynomials and Gaussian boson sampling.
https://the-walrus.readthedocs.io
Apache License 2.0
101 stars 55 forks source link

'pip install thewalrus' fails in Python 3.9. #225

Closed SebCurrie closed 3 years ago

SebCurrie commented 3 years ago

Issue description

Trying to install thewalrus with "pip install thewalrus" fails when using python 3.9.

I suspect this isn't necessary as the issue is lack of a wheel for python 3.9

nquesada commented 3 years ago

Hi @SebCurrie --- You are correct, we have not made any releases for Python 3.9.

josh146 commented 3 years ago

@SebCurrie adding support for Python 3.9 is on our todo list; in the meantime, I recommend downgrading to 3.8 (you can make a new 3.8 environment if using anaconda).

Alternatively, if you would like to have pip compile The Walrus from source using 3.9, you will need to make sure Cython is installed (pip install cython), and the C++ library Eigen is available on your system - there are some instructions for downloading eigen on the readme.

SebCurrie commented 3 years ago

@nquesada @josh146 Thanks for the quick responses. I'm glad to hear there's support coming for python 3.9, and I've found a workaround for now. I can close the issue now, or leave open until the python 3.9 release, I'll leave it up to you. Cheers!

josh146 commented 3 years ago

Glad to hear @SebCurrie 🙂 Let’s leave it open until we have 3.9 support ready, so that others are aware.

josh146 commented 3 years ago

As of the latest 0.15 release, The Walrus now supports Python 3.9 :)