-
Notifications
You must be signed in to change notification settings - Fork 12
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
Update hazen to work with Python 3.9 #142
Comments
On my M1 Macbook (arch = arm64), I've got most packages installed with Python 3.9 through pip now, except psycopg2-binary and scikit-image. The latter is particularly important for hazen as a lot of the tools use this. Reading around, the issue boils down to the available wheels for scikit-image, scipy and numpy. Running pip install scikit-image throws build errors associated with numpy, even if you have it installed already. I think the scikit-image build process isn't building numpy properly. The scikit-image devs are working on creating functioning wheels for Python versions 3.7-3.10, but as of 2 days ago these proposed for a new release (0.19.1) – see here: scikit-image/scikit-image#6021 (comment) The comment also mentions waiting on the SciPy devs to implement something regarding all of this. I think it might be a few months before installing all this packages on arm64 using pip is resolved. Lots of places say miniforge seems to be the way to go for now. For reference, WIP requirements.txt. This might build hazen-3.9 on non-M1 machines, if anyone wants to give it a go (except for psycopg2-binary).
|
Created new branch hazen-3.9-miniforge. Adds environment.yml, for building hazen using miniforge. This works by building with the conda version of scikit-image. Hazen can be run from command line.
|
Completed in release0.5.0, PR #143 |
hazen is currently compiled with Python 3.6. This is end-of-life at the end of 2021. We should keep hazen up-to-date with the latest Python versions.
Further still, installing Python 3.6 is particularly troublesome for M1 Apple Silicon users. There are ways of running Python 3.9 on M1 chips via Rosetta (pyenv/pyenv#1768 (comment)), but this is cumbersome.
The text was updated successfully, but these errors were encountered: