-
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 on linux #8764
Comments
the output makes clear why this can't work: because there is no tensorflow-intel 2.15.0.post1 you'll need to report that to tensorflow. please close. |
Hello, it works with pip, just not with poetry. Also in the setup.py of tensorflow, there is this line:
|
(i) poetry builds cross-platform solutions. So it doesn't matter that you're currently on linux, poetry still needs to solve for Windows too please take it to tensorflow, please close |
but why |
@liaozd I have the same problem in windows, after I run this command: poetry add tensorflow tensorflow-text Here is the log:
|
and here is the pyproject.toml [tool.poetry]
name = "xxx"
version = "0.1.0"
description = ""
authors = [""]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api" |
I'm not sure why the maintainer is so unhelpful. If this issue reproduces with poetry and not pip, it is a poetry issue. I found this workaround for anyone who stumbles on this thread. |
@baranyildirim poetry relies on the package metadata to resolve packages, tensorflow does not consistently contain the required metadata. Pip and Poetry are different tools, they are not equivalent. |
The reasoning doesn't matter to the people trying to use the tool. If you want to respond to an issue like this, just point to the issue that is already open about TensorFlow metadata. This will help people who find this thread and will actually be quicker than arguing with people about why this issue is occurring. Stonewalling doesn't help anyone and reflects poorly on the tool. |
PDM actually manages to install it.
…On Sat, Dec 23, 2023, 6:03 p.m. Baran Yildirim ***@***.***> wrote:
@baranyildirim <https://github.com/baranyildirim> poetry relies on the
package metadata to resolve packages, tensorflow does not consistently
contain the required metadata. Pip and Poetry are different tools, they are
not equivalent.
The reasoning doesn't matter to the people trying to use the tool. If you
want to respond to an issue like this, just point to the issue that is
already open about TensorFlow metadata. This will help people who find this
thread and will actually be quicker than arguing with people about why this
issue is occurring. Stonewalling doesn't help anyone and reflects poorly on
the tool.
—
Reply to this email directly, view it on GitHub
<#8764 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZRPJAG2K3QDF4YCV4D57KDYK55O7AVCNFSM6AAAAABANE4XXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGQYDIMRTGE>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
As advised in #4605 (comment) I've raised this to tensorflow |
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. |
[tool.poetry]
name = "new"
version = "0.1.0"
description = ""
authors = ["Your Name [email protected]"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11,<3.12"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
-vvv
option) and have included the output below.Issue
Can't install tensorflow on linux.
❯ poetry add tensorflow
Using version ^2.15.0.post1 for tensorflow
Updating dependencies
Resolving dependencies... (1.3s)
Because no versions of tensorflow match >2.15.0.post1,<3.0.0
and tensorflow (2.15.0.post1) depends on tensorflow-intel (2.15.0.post1), tensorflow (>=2.15.0.post1,<3.0.0) requires tensorflow-intel (2.15.0.post1).
So, because no versions of tensorflow-intel match 2.15.0.post1
and new depends on tensorflow (^2.15.0.post1), version solving failed.
The text was updated successfully, but these errors were encountered: