Giter VIP home page Giter VIP logo

Comments (7)

Paulj1989 avatar Paulj1989 commented on June 1, 2024 2

Hi @Paulj1989, would you be able to use tensorflow 2.3.1 instead? We pinned numpy to 1.18.5 in gradient-utils to resolve the above issues and tensorflow 2.3.1 should be compatible.

Success! Thanks for your help.

from gradient-cli.

lborke avatar lborke commented on June 1, 2024 1

I have had this issue a few days before.

See also https://developercommunity.visualstudio.com/content/problem/1207405/fmod-after-an-update-to-windows-2004-is-causing-a.html

The best current solution under Win (Version 2004) is:

pip uninstall numpy

then

pip install numpy==1.19.3

Best

from gradient-cli.

lamroger avatar lamroger commented on June 1, 2024 1

I've had similar issues when trying to install gradient. I'm trying to install in a pipenv, and it produces a resolution failure when resolving dependencies.

The error it returns is as follows:

ERROR: Could not find a version that matches numpy==1.18.5,==1.19.3,>=1.12.0,>=1.13.0,>=1.13.3,>=1.14.5,>=1.15,>=1.15.4,>=1.7,>=1.9.1,~=1.19.2

And the incompatible versions:

There are incompatible versions in the resolved dependencies:
  numpy==1.19.3 (from -r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 6))
  numpy==1.18.5 (from gradient-utils==0.3.2->gradient==1.3.0->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 10))
  numpy>=1.12.0 (from tensorboard==2.4.0->tensorflow==2.4.0->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 15))
  numpy>=1.12.0 (from tensorflow-hub==0.10.0->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 2))
  numpy>=1.13.0 (from yellowbrick==1.2->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 7))
  numpy>=1.13.3 (from scikit-learn==0.23.2->sklearn==0.0->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 13))
  numpy>=1.14.5 (from scipy==1.5.4->keras==2.4.3->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 12))
  numpy>=1.15 (from matplotlib==3.3.3->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 4))
  numpy>=1.15 (from seaborn==0.11.0->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 11))
  numpy>=1.15.4 (from pandas==1.1.5->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 14))
  numpy>=1.7 (from h5py==2.10.0->keras==2.4.3->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 12))
  numpy>=1.7 (from opt-einsum==3.3.0->tensorflow==2.4.0->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 15))
  numpy>=1.9.1 (from keras-preprocessing==1.1.2->tensorflow==2.4.0->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 15))
  numpy>=1.9.1 (from keras==2.4.3->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 12))
  numpy~=1.19.2 (from tensorflow==2.4.0->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 15))

Has anyone found a resolution?

Hi @Paulj1989, would you be able to use tensorflow 2.3.1 instead? We pinned numpy to 1.18.5 in gradient-utils to resolve the above issues and tensorflow 2.3.1 should be compatible.

from gradient-cli.

lborke avatar lborke commented on June 1, 2024

PS:
I am not using numpy together with gradient-cli.
My suggestion addresses only the numpy issue.

One solution for gradient-cli (+ numpy) would be using Docker/Hyper-V under Windows to have a native Linux system...

from gradient-cli.

sanfilip avatar sanfilip commented on June 1, 2024

@weikaolun @lamroger I am still able to repo this issue with the latest gradient-cli which pulls in gradient-utils-0.3.1
tensoflow-2.3.1 which is the latest, is not compatible due to the numpy conflict. Seems like we should downgrade gradient-utils to numpy 1.18.5 at least. Also note there is a conflict with hyperopt

Steps to repro:

on macos:
which python3
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3
python3 --version
Python 3.7.3
python3 -m venv venv
source venv/bin/activate
pip install gradient
pip install tensorflow
...
(error:)
gradient-utils 0.3.1 has requirement numpy==1.19.3, but you'll have numpy 1.18.5 which is incompatible.

Also gradient-sdk is no longer compatible with gradient-utils; we need to revise samples to account for this.

from gradient-cli.

sanfilip avatar sanfilip commented on June 1, 2024

@weikaolun @lamroger
This fails for any version of tensorflow, 1.15, 2.x

from gradient-cli.

Paulj1989 avatar Paulj1989 commented on June 1, 2024

I've had similar issues when trying to install gradient. I'm trying to install in a pipenv, and it produces a resolution failure when resolving dependencies.

The error it returns is as follows:

ERROR: Could not find a version that matches numpy==1.18.5,==1.19.3,>=1.12.0,>=1.13.0,>=1.13.3,>=1.14.5,>=1.15,>=1.15.4,>=1.7,>=1.9.1,~=1.19.2

And the incompatible versions:

There are incompatible versions in the resolved dependencies:
  numpy==1.19.3 (from -r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 6))
  numpy==1.18.5 (from gradient-utils==0.3.2->gradient==1.3.0->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 10))
  numpy>=1.12.0 (from tensorboard==2.4.0->tensorflow==2.4.0->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 15))
  numpy>=1.12.0 (from tensorflow-hub==0.10.0->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 2))
  numpy>=1.13.0 (from yellowbrick==1.2->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 7))
  numpy>=1.13.3 (from scikit-learn==0.23.2->sklearn==0.0->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 13))
  numpy>=1.14.5 (from scipy==1.5.4->keras==2.4.3->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 12))
  numpy>=1.15 (from matplotlib==3.3.3->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 4))
  numpy>=1.15 (from seaborn==0.11.0->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 11))
  numpy>=1.15.4 (from pandas==1.1.5->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 14))
  numpy>=1.7 (from h5py==2.10.0->keras==2.4.3->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 12))
  numpy>=1.7 (from opt-einsum==3.3.0->tensorflow==2.4.0->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 15))
  numpy>=1.9.1 (from keras-preprocessing==1.1.2->tensorflow==2.4.0->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 15))
  numpy>=1.9.1 (from keras==2.4.3->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 12))
  numpy~=1.19.2 (from tensorflow==2.4.0->-r /tmp/pipenvn4iqexjvrequirements/pipenv-5gja4g8i-constraints.txt (line 15))

Has anyone found a resolution?

from gradient-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.