Open oceanMin opened 5 years ago
I met another error, at line 2, OS is Mac OS X mojave. I just installed python 3.7 through homebrew.
I met another error, at line 2, OS is Mac OS X mojave. I just installed python 3.7 through homebrew.
tensorflow1.4.0 not support python3.7,you need install python 3.6 in virtualenv or conda
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.
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.
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.
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))