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

Permission error with pip install -e #7940

Closed
jiahao42 opened this issue Mar 30, 2020 · 1 comment
Closed

Permission error with pip install -e #7940

jiahao42 opened this issue Mar 30, 2020 · 1 comment
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@jiahao42
Copy link

  • pip version: 20.0.2
  • Python version:3.6.10
  • Operating system: OpenSUSE Leap 15.1

Hi all,

I am trying to use pip install -e to install package in virtualenv, however, it always gives the following errors:

jiahao:~/code/angr-dev/angr-dev ► workon angr                                 (master✱) 
(angr) jiahao:~/code/angr-dev/angr-dev ► pip3 install -e mulpyplexer          (master✱) 
Obtaining file:///home/jiahao/code/angr-dev/angr-dev/mulpyplexer
    ERROR: Command errored out with exit status 1:
     command: /home/jiahao/.virtualenvs/angr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/jiahao/code/angr-dev/angr-dev/mulpyplexer/setup.py'"'"'; __file__='"'"'/home/jiahao/code/angr-dev/angr-dev/mulpyplexer/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info
         cwd: /home/jiahao/code/angr-dev/angr-dev/mulpyplexer/
    Complete output (4 lines):
    running egg_info
    /home/jiahao/.virtualenvs/angr/lib/python3.6/site-packages/setuptools/dist.py:454: UserWarning: Normalizing '0.08' to '0.8'
      warnings.warn(tmpl.format(**locals()))
    error: [Errno 13] Permission denied
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I added sudo to make it pip3 install -e mulpyplexer, and it works fine. But I think I should be able to install it without sudo in virtualenv, any thoughts of how to do it? Thank you so much!

@triage-new-issues triage-new-issues bot added the S: needs triage Issues/PRs that need to be triaged label Mar 30, 2020
@jiahao42
Copy link
Author

Sorry, it's a silly error.

The root cause is that /home/jiahao/code/angr-dev/angr-dev/mulpyplexer is owned by root, use chown -R to fix the error.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label May 5, 2020
@triage-new-issues triage-new-issues bot removed the S: needs triage Issues/PRs that need to be triaged label May 5, 2020
@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

1 participant