Note that there are some explanatory texts on larger screens.

plurals
  1. POpip keeps removing 'site--packages' & egg's from 'site-packages' from path
    primarykey
    data
    text
    <p><strong>Edit:</strong> looks like pip is to blame but not sure how to fix it</p> <hr> <p>I seem to be having a bit of problem with my Python 2.7 installation. Ever now and then for no obvious reason previously working imports of modules like the one below stop working. </p> <pre><code>&gt; import networkx Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; ImportError: No module named networkx </code></pre> <p>After doing some digging I found the output fro <code>print sys.path</code> to be much sparser than expected (sorry don't have the output, will update next time it happens). As far as I remember it has no 'site--packages' &amp; egg's from 'site-packages'.</p> <p>The only way I have found to fix this is to re-run the installer and "repair" Python. This has become tiresome and I would like to find the root cause of this. </p> <ol> <li><strong>Has anyone experiences this problem before? How did you resolve it</strong></li> <li><strong>What can I do to trace the cause of this issue?</strong></li> </ol> <hr> <p><strong>Update 1</strong> This is the output of <code>sys.path</code> when this problem happens</p> <pre><code>['', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\Lib', 'C:\\Python27\\DLLs', 'C:\\Python27\\Lib\\lib-tk', 'c:\\Python27', 'd:\\dev\\bin'] </code></pre> <hr> <p><strong>Update 2</strong> Happened again, this time I took a copy of the python27 folder, ran the fix (aka repair the install) then did a diff over the files to see if there was any differences. There was nothing different. Also checked the <code>HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7</code> keys for anything strange. There is a value for <code>PythonPath</code> but that does not seem to have any issue with it. Will check next time.</p>
    singulars
    1. This table or related slice is empty.
    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. 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