materialsintelligence / mat2vec

Supplementary Materials for Tshitoyan et al. "Unsupervised word embeddings capture latent knowledge from materials science literature", Nature (2019).
MIT License
616 stars 180 forks source link

Setup requirements error #6

Closed dbcraig closed 4 years ago

dbcraig commented 5 years ago

Had an issue (from within a fresh conda environment) running:

pip install -r requirements.txt

After successfully compiling packages installation ultimately failed with:

...
Installing collected packages: monty, regex, urllib3, requests, unidecode, ruamel.yaml, pydispatcher, tabulate, spglib, palettable, pymatgen, pycryptodome, pdfminer.six, python-crfsuite, cssselect, appdirs, DAWG, chemdataextractor, jmespath, botocore, s3transfer, boto3, smart-open, gensim, tqdm
  Found existing installation: urllib3 1.12
ERROR: Cannot remove entries from nonexistent file /xxx/.conda/envs/tshitoyan/lib/python3.6/site-packages/easy-install.pth

The solution was to re-run pip with the --ignore-installed option:

pip install --ignore-installed -r requirements.txt

Beyond that, everything installed and ran as expected. Hope this saves some headaches for others.

Great work!

Doug

YuanJ-i commented 5 years ago

same issue as yours

YuanJ-i commented 5 years ago

solved by downgrade to python 3.6

YuanJ-i commented 5 years ago

solved by downgrade to python 3.6

plus, you need a vpn if you are in china, otherwise it will be very slow downloading process

jdagdelen commented 5 years ago

I've added checking for Python 3.6 in #8. @vtshitoyan could you please review and merge?

vtshitoyan commented 5 years ago

@jdagdelen I am not sure this fixes the issue since it happens during the pip install -r requirements.txt?

jdagdelen commented 4 years ago

I'm adding the --ignore-installed flag to the recommended setup steps so new users should hopefully avoid running into this. I'm closing this now since discussion seems to have resolved but feel free to reopen if you want to continue discussing this issue.