Skip to content

Venv is created without pip #169

@cauebs

Description

@cauebs

This causes an EnvironmentError: Permission Denied when I try to install anything, because it ends up using system-wide pip. What I find terribly strange is that the necessary flag is actually being passed here: https://github.com/sdispater/poetry/blob/develop/poetry/utils/venv.py#L140

~ $ poetry new foo
Created package foo in foo
~ $ cd foo
~/foo $ poetry add -D mypy
Using version ^0.600.0 for mypy

Updating dependencies
Resolving dependencies... (0.1s)


Package operations: 8 installs, 0 updates, 0 removals

Writing lock file

  - Installing atomicwrites (1.1.5)
                                                                                                                                        
[VenvCommandError]                                                                                                       
Command ['pip', 'install', '--no-deps', '-r', '/tmp/atomicwrites-1.1.55axra81lreqs.txt'] errored with the following output:           
Collecting atomicwrites==1.1.5 (from -r /tmp/atomicwrites-1.1.55axra81lreqs.txt (line 1))                                             
  Using cached https://files.pythonhosted.org/packages/0a/e8/cd6375e7a59664eeea9e1c77a766eeac0fc3083bb958c2b41ec46b95f29c/atomicwrit  
es-1.1.5-py2.py3-none-any.whl                                                                                                         
Installing collected packages: atomicwrites                                                                                           
Could not install packages due to an EnvironmentError: [Errno 13] Permissão negada: '/usr/lib/python3.6/site-packages/atomicwrites-1  
.1.5.dist-info'                                                                                                                       
Consider using the `--user` option or check the permissions.                                                                          
                                                                                                                                        
add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)...

~/foo $ ls .venv/bin
activate  activate.csh  activate.fish  python  python3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions