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

pip install doesn't work #12

Closed
karteek-paruchuri opened this issue Mar 22, 2016 · 2 comments
Closed

pip install doesn't work #12

karteek-paruchuri opened this issue Mar 22, 2016 · 2 comments

Comments

@karteek-paruchuri
Copy link

Hi

I'm trying to run this code on Azure ubuntu 14.10 vm.
I installed pip (pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7))
Now when i try "sudo pip install projectoxford"
I get the following output
Downloading/unpacking projectoxford
Downloading projectoxford-0.3.1.zip
Running setup.py (path:/tmp/pip_build_root/projectoxford/setup.py) egg_info for package projectoxford
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip_build_root/projectoxford/setup.py", line 12, in
with open('README', 'r', encoding='utf-8') as f:
TypeError: 'encoding' is an invalid keyword argument for this function
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 17, in

File "/tmp/pip_build_root/projectoxford/setup.py", line 12, in

with open('README', 'r', encoding='utf-8') as f:

TypeError: 'encoding' is an invalid keyword argument for this function


Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/projectoxford
Storing debug log for failure in /home/kparuchuri/.pip/pip.log

Can you please help me out.

Thanks

@jacobjelen
Copy link

jacobjelen commented May 10, 2016

I'm having the same issue. Did you find a solution?
thx

EDIT: Fixed it by writing pip install projectoxford
Having both Python 2.7 and 3.5 versions installed seemed to be the issue. This library is supposed to run on 3.5 so to direct the installation to the right place you need to use pip3

The ReadMe.rtf in Python 2.7 says:

Python 3 and Python 2 Co-existence

Python.org Python 2.7 and 3.x versions can both be installed on your system and will not conflict. Python 2.7 command names contain a 2 or no digit: python2 (or python2.7 or python), idle2 (or idle2.7 or idle), pip2 (or pip2.7 or pip), etc. Command names for Python 3 contain a 3 in them, python3, idle3, pip3, etc.

@davidkinnes
Copy link

Know problem in Weasyprint : Kozea/WeasyPrint#323
Just need to upgrade Weasyprint to version 0.29 that fixes it.

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

3 participants