can't install tensorflow==2.0.0rc0 with poetry (python3.6.5)
See original GitHub issue- I am on the latest Poetry version.
- (I’m actually on 1.0.0b1)
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- OS version and name: MacOS 10.14.5
- Poetry version: 1.0.0b1
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/zachmoshe/36ec3cc128545aa8ab49a2d4dcd9cd52
Issue
- Open a new project (
poetry new .
) - run
poetry add tensorflow==2.0.0rc0
Fails because it can’t install functools32 (for python2 only). debug logs - https://gist.github.com/zachmoshe/8bd72026dd727380f4b88dc4ef55ff4f
Installing previous versions works and installing rc0
with pip also works.
I understand functools32
is a new dependency and that somehow we try to install a version which only work with python2. I just can’t understand why do we try this specific version.
Any solution or a workaround?
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:13
- Comments:26 (3 by maintainers)
Top Results From Across the Web
Can't install tensorflow with pip or anaconda - Stack Overflow
Tensorflow or Tensorflow-gpu is supported only for 3.5.X versions of Python. Try installing with any Python 3.5.X version.
Read more >I can't install TensorFlow-macos a… | Apple Developer Forums
Yes, I am running python 3.8.10. And for whl files, I am using MacBook Pro 16' with intel CPU, so, I do have...
Read more >Install TensorFlow with pip
This guide is for the latest stable version of TensorFlow. For the preview build (nightly), use the pip package named tf-nightly . Refer...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Uh, if pip installs it fine, but poetry screws up, is it really “rightly”?
Unfortunately, this is not on Poetry’s end. If you take a look at https://pypi.org/pypi/tensorflow/json in the
requires_dist
section of theinfo
property,functools32
is specified as a dependency without any environment marker so Poetry rightly assumes that it’s an unconditional dependency.So, this issue must be fixed upstream by the tensorflow maintainers