DOsinga / deep_learning_cookbook

Deep Learning Cookbox
Apache License 2.0
686 stars 335 forks source link

requirements.txt problem --> pyparsing #67

Open huzunali opened 4 years ago

huzunali commented 4 years ago

I am getting the following error when I run "pip install -r requirements.txt"

Ubuntu 18.04 Python 3.6.9

Collecting pyparsing==2.4.1 (from -r requirements.txt (line 98)) Could not find a version that satisfies the requirement pyparsing==2.4.1 (from -r requirements.txt (line 98)) (from versions: 1.4.6, 1.4.7, 1.4.8, 1.4.11, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.5.7, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.1.7, 2.1.8, 2.1.9, 2.1.10, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1.1, 2.4.2a1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6) No matching distribution found for pyparsing==2.4.1 (from -r requirements.txt (line 98))

DOsinga commented 4 years ago

Hmm, that combination might not exists.

What you could try it is:

rm requirements.txt
pip install pip-tools
pip-compile
pip install -r requirements.txt

That should recalculate the dependencies.

huzunali commented 4 years ago

I actually commented out the 'pyparsing' line in the requirements.txt, and re-ran the command. Everything got installed - including pyparsing (2.4.6)!

On an unrelated note, "https://deeplearning4jblob.blob.core.windows.net/resources/wordvectors/" not working. I am receiving "AccountIsDisabled" error. Instead, I installed word2vec model from "https://s3.amazonaws.com/dl4j-distribution/GoogleNews-vectors-negative300.bin.gz".

You may want to update the code with this.