dnaaun / openFraming

Tools for automatic frame discovery and labeling based on topic modeling and deep learning, made widely accessible to researchers from non computational backgrounds.
http://www.openframing.org
9 stars 7 forks source link

pip requirements.txt in OSX Could not find a version that satisfies the requirement torch==1.5.0+cpu #200

Closed monajalal closed 4 years ago

monajalal commented 4 years ago

Could not find a version that satisfies the requirement torch==1.5.0+cpu (from -r backend/requirements_no_gpu.txt (line 18)) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 0.1.7.post2, 0.1.8.post1, 0.1.9.post1, 0.1.9.post2, 0.1.10.post1, 0.1.11.post4, 0.1.11.post5, 0.1.12.post1, 0.1.12.post2, 0.2.0.post1, 0.2.0.post2, 0.2.0.post3, 0.3.0, 0.3.0.post2, 0.3.0.post3, 0.3.0.post4, 0.3.1, 0.4.0, 0.4.1, 1.0.0, 1.0.1, 1.0.1.post2, 1.1.0, 1.1.0.post2, 1.2.0, 1.3.0, 1.3.0.post2, 1.3.1, 1.4.0, 1.5.0, 1.5.1) No matching distribution found for torch==1.5.0+cpu (from -r backend/requirements_no_gpu.txt (line 18))

monajalal commented 4 years ago

If you get this error on OSX, use the following instead:

torch==1.5.0

monajalal commented 4 years ago

also brew install redis instead of sudo apt-get install redis in OSX

monajalal commented 4 years ago

$ tar -xvf ~/mallet-2.0.8.tar.gz --one-top-level=$HOME/mallet tar: Option --one-top-level=/Users/mona/mallet is not supported Usage: List: tar -tf Extract: tar -xf Create: tar -cf [filenames...] Help: tar --help

should change to

$ tar -xvf ~/mallet-2.0.8.tar.gz

$ tar -xvf ~/mallet-2.0.8.tar.gz --one-top-level=$HOME/mallet $ mv mallet-2.0.8/ $HOME/mallet

monajalal commented 4 years ago

$ flask run --host=0.0.0.0 --port=5000 --debugger --reload

monajalal commented 4 years ago

^C(venv) (base) mona@goku:~/research/summer2020/openFraming/backend/flask_app$ flask --version Python 3.6.5 Flask 1.1.2 Werkzeug 1.0.1

dnaaun commented 4 years ago

The current recommended setup is with docker, so there's no need to fiddle with such platform specific concerns anymore!