Skip to content

Can't be installed in virtualenv #4

@D3f0

Description

@D3f0

Trying to install Construct on virtualenv fails complaining about write permissions on Python system lib foder.

(txscada)[12:44:23] defo:pysmve git:(master*) $ which python
/home/defo/.virtualenvs/txscada/bin/python
(txscada)[12:44:29] defo:pysmve git:(master*) $ pip install Construct
Downloading/unpacking Construct
  Running setup.py egg_info for package Construct

Installing collected packages: Construct
  Running setup.py install for Construct
    error: could not create '/usr/lib/python2.7/site-packages/construct': Permission denied
    Complete output from command /usr/bin/python2.7 -c "import setuptools;__file__='/home/defo/.virtualenvs/txscada/build/Construct/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-21yutH-record/install-record.txt --install-headers /home/defo/.virtualenvs/txscada/include/site/python2.7:
    running install

running build

running build_py

running install_lib

creating /usr/lib/python2.7/site-packages/construct

error: could not create '/usr/lib/python2.7/site-packages/construct': Permission denied

----------------------------------------
Command /usr/bin/python2.7 -c "import setuptools;__file__='/home/defo/.virtualenvs/txscada/build/Construct/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-21yutH-record/install-record.txt --install-headers /home/defo/.virtualenvs/txscada/include/site/python2.7 failed with error code 1 in /home/defo/.virtualenvs/txscada/build/Construct
Storing complete log in /home/defo/.pip/pip.log

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