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

PyPI install fails without first updating pip #38

Closed
DanielSank opened this issue Oct 14, 2017 · 2 comments · Fixed by #39
Closed

PyPI install fails without first updating pip #38

DanielSank opened this issue Oct 14, 2017 · 2 comments · Fixed by #39

Comments

@DanielSank
Copy link
Collaborator

DanielSank commented Oct 14, 2017

I made a virtualenv and did this

pip install --pre openfermion

and got

...
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /usr/local/google/home/danielsank/.virtualenvs/openfermion/build/h5py
Traceback (most recent call last):
  File "/usr/local/google/home/danielsank/.virtualenvs/openfermion/bin/pip", line 11, in <module>
    sys.exit(main())
  File "/usr/local/google/home/danielsank/.virtualenvs/openfermion/local/lib/python2.7/site-packages/pip/__init__.py", line 185, in main
    return command.main(cmd_args)
  File "/usr/local/google/home/danielsank/.virtualenvs/openfermion/local/lib/python2.7/site-packages/pip/basecommand.py", line 161, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 72: ordinal not in range(128)

This was with python 2.7.6 and pip 1.5.4.

@DanielSank
Copy link
Collaborator Author

Aha, upgrading to pip 9.0.1 fixed the problem. I should have known as I've seen this problem before. It's not this project's job to fix pip, but this problem happens all the time so we might want to add something to the README.

@DanielSank
Copy link
Collaborator Author

My recommended installation for people who use virtualenv would be (after activating your virtualenv):

pip install -U pip
pip install --pre openfermion

@DanielSank DanielSank changed the title Install fails PyPI install fails without first updating pip Oct 14, 2017
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

Successfully merging a pull request may close this issue.

1 participant