sketch-code icon indicating copy to clipboard operation
sketch-code copied to clipboard

‘pip install -r requirements.txt’ setup reported the following error

Open oceanMin opened this issue 7 years ago • 5 comments

Could not find a version that satisfies the requirement Keras==2.1.2 (from -r requirements.txt (line 1)) (from versions: ) No matching distribution found for Keras==2.1.2 (from -r requirements.txt (line 1))

oceanMin avatar Jan 11 '19 03:01 oceanMin

I met another error, at line 2, OS is Mac OS X mojave. I just installed python 3.7 through homebrew. image

shiyingyu avatar Feb 18 '19 08:02 shiyingyu

I met another error, at line 2, OS is Mac OS X mojave. I just installed python 3.7 through homebrew. image

tensorflow1.4.0 not support python3.7,you need install python 3.6 in virtualenv or conda

renzhe00 avatar Feb 20 '19 02:02 renzhe00

You can install tensorflow and other requirements separately with pip or just change the version requirements in the file to also match newer versions. So change tensorflow===1.4.0 to tensorflow>==1.4.0 and so on. At least the version 1.13.0 seems to work just fine.

villemikkola avatar Mar 12 '19 11:03 villemikkola

For Mac OS X Mojave 10.14.6 (18G87). pip 19.2.3 (python 3.7)

requirements.txt:

Keras==2.1.2
tensorflow==1.14.0
nltk==3.2.5
opencv-python==4.0.0.21
numpy==1.17.1
h5py==2.9.0
matplotlib==2.0.2
Pillow==6.1.0
tqdm==4.17.1
scipy==1.3.1

And then pip install -r requirements.txt

UPD: Probably need to install brew install pkg-config before python packages.

rensite avatar Aug 28 '19 07:08 rensite

I installed Python 3.6 (64 bit) and it worked fine. Any larger version (3.7, ...) fails sooner or later. Also there was need for 64 bit version, not 32 bit.

kaunas163 avatar Nov 11 '20 18:11 kaunas163