-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
can't install tensorflow==2.0.0rc0 with poetry (python3.6.5) #1330
Comments
It appears that tensorflow 2.0.0-rc0's setup.py dynamically changes its requirements depending on the environment by executing code. My guess is that Poetry does not handle this case well for some reason as it appears ALL of the Python2-linked dependencies are being grabbed. I've never really played with the |
Makes sense, but I'm not familiar with the internals as well.. definitely not a standard setup.py. |
Yeap, I am yet another one with the same issue. |
I found some reasons that functools32 dependency found even if Python3 projects you have:
So at first, we need to modify tensorflow package metadata. I think it's a tensorflow team matter.
So poetry need to be fixed these logics, IMO, it should respect Python version of venv. |
Is there a particular workaround at the moment so that TF 2.0 can be installed? |
Unfortunately, this is not on Poetry's end. If you take a look at https://pypi.org/pypi/tensorflow/json in the So, this issue must be fixed upstream by the tensorflow maintainers |
tensorflow/tensorflow#32758 |
Uh, if pip installs it fine, but poetry screws up, is it really "rightly"? |
works for me tensorflow |
In addition to @grisaitis answer
then his command |
I'm also running into problems due to this this: It seems to be failing to pull in dependencies matching *
at https://pypi.org/pypi/tf-nightly/json in the requires_dist section of the info property you can see that tf-estimator-nightly has no specified version. One workaround is to explicitly install tf-estimator-nightly, but it would be nice if poetry could patch around this for now... |
@mjlbach : i could not get this work. is the succession of commands you are proposing
The first one works, the second one does not. I get this error:
|
@mohelm I don't think the release I used in my specific command is available anymore. Using the commands
I was able to install tf-nightly on a fresh vm. |
@mjlbach : Many thanks! Do you remember the Python version? I am actually trying this with Python 3.8. |
@mohelm Ah! That's your problem, tensorflow is only packaged for 3.6/3.7 currently (I believe) |
Hm, these nightlies should work with 3.8 I believe.
Michael Lingelbach <[email protected]> schrieb am Do., 26. März
2020, 21:21:
… @mohelm <https://github.com/mohelm> Ah! That's your problem, tensorflow
is only packaged for 3.6/3.7 currently (I believe)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1330 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEJC4NK7BXIEI35QTZDTIV3RJO2NRANCNFSM4IPQRYUA>
.
|
You're correct, I just managed to get tf-nightly installed on 3.8... Not sure why you are having the issue. |
Interesting. I tried on Mac, but I also saw just now the caveats (go to
caveats section) here
https://github.com/tensorflow/tensorflow/releases
Which I guess do apply??
May I ask you on which operating system you succeeded?
Michael Lingelbach <[email protected]> schrieb am Do., 26. März
2020, 21:46:
… Hm, these nightlies should work with 3.8 I believe. Michael Lingelbach
***@***.*** schrieb am Do., 26. März 2020, 21:21:
… <#m_-403593830552407337_m_-732227986706241720_>
@mohelm <https://github.com/mohelm> https://github.com/mohelm Ah! That's
your problem, tensorflow is only packaged for 3.6/3.7 currently (I believe)
— You are receiving this because you were mentioned. Reply to this email
directly, view it on GitHub <#1330 (comment)
<#1330 (comment)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEJC4NK7BXIEI35QTZDTIV3RJO2NRANCNFSM4IPQRYUA
.
You're correct, I just managed to get tf-nightly installed on 3.8... Not
sure why you are having the issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1330 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEJC4NOBQNBYRXXLXIC7QMTRJO5MBANCNFSM4IPQRYUA>
.
|
@mohelm nixOS, works on ubuntu as well |
Awesome will try tomorrow thanks.
Michael Lingelbach <[email protected]> schrieb am Do., 26. März
2020, 21:51:
… @mohelm <https://github.com/mohelm> nixOS, works on ubuntu as well
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1330 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEJC4NLQ5YC7D4FRHLIDOJDRJO56PANCNFSM4IPQRYUA>
.
|
This is also a problem with Tensorflow 1.15, and some python libraries require the 1.x version of Tensorflow. |
For anyone having similar issues, I'd recommend trying |
Give up on testing against TF 2.0 because Poetry can't install it well (see python-poetry/poetry#1330)
I also ran into this issue with Tensorflow 1.15.0, but Tensorflow 1.14.0 installs OK. |
Installing Tensorflow 1.15.2 or 1.15.3 works fine for me. |
Hi, I still have this exact problem. Are there any reliable workarounds? |
This exact problem is related to a Tensorflow release candidate having bad metadata. If you're having issues installing Tensorflow, I suggest you go to Discussions or Discord to get help, as there are many common misconceptions and pitfalls, and we don't yet have a FAQ for involved binary packages like Tensorflow and PyTorch. |
This still doesn't work. |
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. |
-vvv
option).Issue
poetry new .
)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!
The text was updated successfully, but these errors were encountered: