Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h1>One time workaround:</h1> <pre><code>pip install --user --install-option="--prefix=" &lt;package_name&gt; </code></pre> <p>or</p> <pre><code>python setup.py install --user --prefix= </code></pre> <p>Note that there is no text (not even whitespace) after the <code>=</code>.</p> <p>Do <em>not</em> forget the <code>--user</code> flag.</p> <h1>Installing multiple packages:</h1> <p>Create <code>~/.pydistutils.cfg</code> (or equivalent for your OS/platform) with the following contents:</p> <pre><code>[install] prefix= </code></pre> <p>Note that there is no text (not even whitespace) after the <code>=</code>.</p> <p>Then run the necessary <code>pip install --user</code> or <code>python setup.py install --user</code> commands. Do <em>not</em> forget the <code>--user</code> flag.</p> <p>Finally, remove or rename this file. Leaving this file present will cause issues when installing Python packages system-wide (i.e., without <code>--user</code>) as this user with this <code>~/.pydistutils.cfg</code>.</p> <h1>The cause of this issue</h1> <p>This appears to be an issue with both OpenSUSE and RedHat, which has lead to <a href="https://bugs.launchpad.net/virtualenv/+bug/248558">a bug in virtualenv</a> on these platforms.</p> <p>The error stems from a system-level <a href="http://docs.python.org/install/index.html#distutils-configuration-files">distutils configuration file</a> (in my case <code>/usr/lib64/python2.6/distutils/distutils.cfg</code>) where there was this</p> <pre><code>[install] prefix=/usr/local </code></pre> <p>Basically, this is equivalent to always running the install command as <code>install --prefix=/usr/local</code>. You have to override this specification using one of the techniques above.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload