Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup requirements error #6

Closed
dbcraig opened this issue Jul 11, 2019 · 6 comments
Closed

Setup requirements error #6

dbcraig opened this issue Jul 11, 2019 · 6 comments

Comments

@dbcraig
Copy link

dbcraig commented Jul 11, 2019

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
Copy link

YuanJ-i commented Jul 12, 2019

same issue as yours

@YuanJ-i
Copy link

YuanJ-i commented Jul 13, 2019

solved by downgrade to python 3.6

@YuanJ-i
Copy link

YuanJ-i commented Jul 13, 2019

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
Copy link
Contributor

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

@jdagdelen jdagdelen reopened this Jul 24, 2019
@vtshitoyan
Copy link
Collaborator

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

jdagdelen added a commit that referenced this issue Nov 19, 2019
@jdagdelen
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants