question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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).

Issue

  1. Open a new project (poetry new .)
  2. 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:closed
  • Created 4 years ago
  • Reactions:13
  • Comments:26 (3 by maintainers)

github_iconTop GitHub Comments

18reactions
ColonelThirtyTwocommented, Jan 5, 2020

so Poetry rightly assumes

Uh, if pip installs it fine, but poetry screws up, is it really “rightly”?

16reactions
sdispatercommented, Oct 6, 2019

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 the info 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found