Skip to content
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

numpy 1.19.0 is incompatible with tensorflow 2.2.1 #26

Open
kafasin opened this issue Nov 21, 2020 · 1 comment
Open

numpy 1.19.0 is incompatible with tensorflow 2.2.1 #26

kafasin opened this issue Nov 21, 2020 · 1 comment

Comments

@kafasin
Copy link

kafasin commented Nov 21, 2020

Warning while piping requirements,

-- ERROR: tensorflow 2.2.1 has requirement numpy<1.19.0,>=1.16.0, but you'll have numpy 1.19.0 which is incompatible.

@alessandrogambin
Copy link

alessandrogambin commented Jan 29, 2021

Warning while piping requirements,

-- ERROR: tensorflow 2.2.1 has requirement numpy<1.19.0,>=1.16.0, but you'll have numpy 1.19.0 which is incompatible.

Hello @kafasin.

Just try to change numpy version from 1.19.0 to 1.18.5 in requirements.txt file. I haven't tested yet but the install process works fine, once version 1.18.5 solve all requirements for the packages that depend on numpy.

For more information about release 1.19.0 (like compatibility issues, deprecation and new features) follow this link.

However as mentioned by @abhishekkrthakur in #20, the book used TensorFlow 1.15 (last release of version 1). Due to diffs from ts v1 to v2, compatibility issues may occur (although the use of Keras API (tf.keras) can abstract these differences). In any case, there is a guide for migration between versions (see this link), or you can do as mentioned on README.md in this repo, changing the follow packages versions on requirements.txt file:

  • gast: from 0.3.3 to 0.2.2
  • numpy: from 1.19.0 to 1.18.5 (as mentioned before)
  • tensorboard: from 2.2.2 to 1.15.0
  • tensorflow: from 2.2.1 to 1.15.0
  • tensorflow-estimator: from 2.2.0 to 1.15.1

I hope that could help you.

Cheers.

SoothingDuck pushed a commit to SoothingDuck/approachingalmost that referenced this issue Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants