[Python-modules-team] Bug#869080: virtualenv: impossible to install self-made package in virtualenv distributed with debian

Łukasz Grabowski graboluk at gmail.com
Thu Jul 20 10:51:44 UTC 2017


Package: virtualenv
Severity: normal

Dear Maintainer,

When trying to install a self-made package called "fledit" in a virtual evironment the following kept happening:

 Running setup.py develop for fledit
    Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/home/luke/devel/nvstem-edit/fledit/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps:
    running develop
    error: can't create or remove files in install directory
    
    The following error occurred while trying to add or remove files in the
    installation directory:
    
        [Errno 2] No such file or directory: '/usr/lib/python3.5/site-packages/test-easy-install-2043.write-test'
    
    The installation directory you specified (via --install-dir, --prefix, or
    the distutils default setting) was:
    
        /usr/lib/python3.5/site-packages/
    
    This directory does not currently exist.  Please create it and try again, or
    choose a different installation directory (using the -d or --install-dir
    option).
    

What helped in my  case was apt-get uninstall virtualenv and then pip3 install virtualenv






*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 9.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages virtualenv depends on:
ii  python3             3.5.3-1
pn  python3-virtualenv  <none>

virtualenv recommends no packages.

virtualenv suggests no packages.



More information about the Python-modules-team mailing list