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

python -m pip install -U . doesn't work. #6

Closed
matthiaskramm opened this issue Jan 21, 2016 · 5 comments
Closed

python -m pip install -U . doesn't work. #6

matthiaskramm opened this issue Jan 21, 2016 · 5 comments

Comments

@matthiaskramm
Copy link
Contributor

It ought to be possible to install pytype using pip by running

python -m pip install -U .

but doing so causes an error message.

@matthiaskramm
Copy link
Contributor Author

Confirmed that

sudo python -m pip install -U .

works now. However, permissions might need tweaking - running pytype on my machine, after the above, throws:

IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pytype/pytd/builtins/__builtin__.pytd'

@matthiaskramm matthiaskramm reopened this Jan 30, 2016
@berkerpeksag
Copy link
Contributor

That IOError looks interesting.

$ sudo python -m pip install -U .

worked for me on Ubuntu 12.04:

...
Successfully installed pytype-0.2

@matthiaskramm
Copy link
Contributor Author

What happens if afterwards, you do

pytype some_file.py

?

@berkerpeksag
Copy link
Contributor

It prints the output of the file I gave:

$ pytype x.py 
class Foo(object):
    pass

(I admit it's not a good file to test it :))

@matthiaskramm
Copy link
Contributor Author

Ok, it's probably just a bad umask on my machine.
Closing, will reopen in case anybody else has the same problem.

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

2 participants