Note that there are some explanatory texts on larger screens.

plurals
  1. POpython doesn't use updated pip scipy package
    primarykey
    data
    text
    <p>I'm currently working with <code>scipy</code> and having problems updating it. It is installed via pip and <code>pip list</code> gives me:</p> <pre><code>... scipy (0.13.2) ... </code></pre> <p>But when I fire up my python and do:</p> <pre><code>import scipy print scipy.__version__ </code></pre> <p>I get:</p> <pre><code>0.11.0 </code></pre> <p>Any idea where if got something wrong? Maybe the path? I was thinking python uses my pip packages as I installed scipy with it in the first place.</p> <p><strong>Additional Information:</strong><br> Output of <code>which python</code> in terminal:</p> <pre><code>/usr/bin/python </code></pre> <p>Output of <code>print sys.path</code>:</p> <pre><code>'/Users/*MY_USER*/Documents/workspace/*MY_PROJECT*', '/Library/Python/2.7/site-packages/pip-1.4.1-py2.7.egg', '/Users/*MY_USER*/Documents/workspace/*MY_PROJECT*', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages', 'lib' </code></pre> <p>Output of print <code>scipy.__path__</code>:</p> <pre><code>/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy </code></pre> <p>Output of <code>which pip</code>:</p> <pre><code>/usr/local/bin/pip </code></pre> <p><strong>UPDATE:</strong><br> It seems, another version of scipy is pulled first from<br> <code>/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/</code><br> because it appears before the correct <code>/Library/Python/2.7/site-packages</code></p> <p>So if i run<br> <code>sys.path.insert(1, "/Library/Python/2.7/site-packages")</code><br> the correct version of scipy is loaded!</p> <p>So how can i fix this ordering issue clean and permanently? Platform OSX Mavericks.</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