Comments (7)
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.
I have had this issue a few days before.
The best current solution under Win (Version 2004) is:
pip uninstall numpy
then
pip install numpy==1.19.3
Best
from gradient-cli.
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.2And 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.
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.
@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.
@weikaolun @lamroger
This fails for any version of tensorflow, 1.15, 2.x
from gradient-cli.
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)
- Some parameters in job_client.create() don't work HOT 8
- Failed to create resource HOT 2
- Experiment worker command base64-encoded HOT 1
- Update older example or create new ML5js example PLEASE HOT 1
- dead link in documentation HOT 1
- Problem running gradient in the cli for Win10
- ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly HOT 1
- Failing to start notebook HOT 3
- Support for click < 8 HOT 1
- Gradient CLI won't list available machine types HOT 2
- can not instantiate ipywidgets.Output in notebook HOT 1
- Failed to execute request against storage provider when uploading a dataset HOT 3
- Update version specifier
- my ip is banned by cloudflare
- Request to Increase Supported Marshmallow Version
- 'gradient' is not recognized as an internal or external command, operable program or batch file on Windows 11
- PyYAML 5.4.1 is broken, use PyYAML 5.3.1 instead HOT 3
- PyYAML dependency issue
- Why there is no deployments interfaces in SDK, only can be found in CLI? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradient-cli.