-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 Tensorflow on macOS Big Sur #3566
Comments
|
@timkofu this is a platform specific error that doesn't affect poetry. Most scientific packages broke with BigSur (Numpy, Pandas, Tensorflow) as there is breaking changes both for the intel and Apple silicon based MacBooks. To get any of the aformentioned packages running again you'll have to revert to Catalina, run it containerized/vm or wait until fixes have made it downstream for Apple's breaking changes. |
|
You can confirm this yourself in a minute or two by:
(added this comment as I see you're running multiple versions of python. Python2 might never have been updated, for that it's important to remember Python2 is a dead and no longer maintained language .) |
|
@alexpdr In my last few sentences, I showed that it does work with an updated pip and setuptools, but not with poetry. Im current working with plain Also, I'm only running Python 3.8.7 on this venv, no Python 2. The last code is printing the Tensorflow version, showing it imported successfully with no errors when installed via pip. |
|
----> grpc/grpc#24677
|
|
Had seen that thread before reporting this; it's where I got the idea that using (the latest) plain pip would solve the DS stack (and other) install issues. Specifically this comment. "It's working fine with pip, have you tried that?" will probably be the first comment. The |
|
Which versions of |
|
I came across the same issue when attempting to install There is a lot going on here, but the offending line in The return value from I was able to get this to work by downgrading my Python distribution to 3.7 since, for whatever reason, I don't know exactly where the fix for this should be made. It is frustrating that the value gets cast to an By the way, I'm using Brew for this. Someone mentioned hardcoding the value in the Brew formula as a workaround (see python/cpython#23556 (comment)) although I don't think this is a good long-term solution. |
|
@finswimmer with the venv created with >>> import pip, setuptools
>>> pip.__version__
'20.2.2'
>>> setuptools.__version__
'49.6.0' |
|
Wheel installation was fixed in packaging (pypa/packaging#319) and the newer version is used in pip (pypa/pip#9138), but not in poetry or poetry-core. I suspect that this kind of issue could be fixed by providing a new version of poetry-core, where the vendored packaging dependency is updated to the latest release and then fix the requirements of poetry itself. |
|
I think this would also solve the issue with needing pip 20.3.0> to be able to download wheels. |
|
I had a similar issue as described by @loganjhennessy , regarding A quick fix that worked for me was running Afterwards, clang errors were no longer thrown and I was able to install via pipenv. Not sure if this fix applies to the original issue but hope it helps! |
|
This is now working perfectly with release |
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvvoption).Issue
poetry add tensorflowfails in a freshPython 3.8.7.venv with the final exceptiondistutils.errors.CompileError: command 'clang' failed with exit status 1.pip install tensorflowfails with the errorCould not find a version that satisfies the requirement tensorflow (from versions: none).I upgraded pip and setuptools to the latest releases
pip install -U pip setuptoolsand rerunpoetry add; It failed with the same exception, and the following error:However,
pip install tensorflownow works:python -c "import tensorflow;print(tensorflow.__version__)" 2.4.0The text was updated successfully, but these errors were encountered: