Skip to content

Permission error with pip install -e #7940

@jiahao42

Description

@jiahao42
  • 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions