abhishekkrthakur / approachingalmost

Approaching (Almost) Any Machine Learning Problem
7.49k stars 1.06k forks source link

numpy 1.19.0 is incompatible with tensorflow 2.2.1 #26

Open kafasin opened 4 years ago

kafasin commented 4 years ago

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 commented 3 years ago

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:

I hope that could help you.

Cheers.

stormchasingg commented 3 weeks ago

another try: