Skip to content

Instantly share code, notes, and snippets.

@earwig
Created July 29, 2018 20:21
Show Gist options
  • Save earwig/8d316e6b053ce9e90d3dbdd7c4a0da70 to your computer and use it in GitHub Desktop.
Save earwig/8d316e6b053ce9e90d3dbdd7c4a0da70 to your computer and use it in GitHub Desktop.
ben@earwig:~ $ virtualenv foobar
New python executable in /Users/ben/foobar/bin/python2.7
Also creating executable in /Users/ben/foobar/bin/python
Installing setuptools, pip, wheel...done.
ben@earwig:~ $ cd foobar/
ben@earwig:~/foobar $ . ./bin/activate
(foobar) ben@earwig:~/foobar $ pip install numpy scipy
Collecting numpy
Downloading https://files.pythonhosted.org/packages/3c/bf/e36756c562f7386be78c6942f0a8a647ee4eb374cdf219bece7054832b14/numpy-1.15.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (24.5MB)
100% |████████████████████████████████| 24.5MB 433kB/s
Collecting scipy
Downloading https://files.pythonhosted.org/packages/d1/d6/3eac96ffcf7cbeb37ed72982cf3fdd3138472cb04ab32cdce1f444d765f2/scipy-1.1.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (16.8MB)
100% |████████████████████████████████| 16.8MB 101kB/s
Installing collected packages: numpy, scipy
Successfully installed numpy-1.15.0 scipy-1.1.0
(foobar) ben@earwig:~/foobar $ python
Python 2.7.15 (default, Jun 19 2018, 21:29:04)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy.linalg import solve_toeplitz
/Users/ben/foobar/lib/python2.7/site-packages/scipy/linalg/basic.py:17: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._solve_toeplitz import levinson
/Users/ben/foobar/lib/python2.7/site-packages/scipy/linalg/__init__.py:207: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._decomp_update import *
>>>
(foobar) ben@earwig:~/foobar $ pip uninstall numpy && pip install numpy==1.14.5
Uninstalling numpy-1.15.0:
Would remove:
/Users/ben/foobar/bin/conv-template
/Users/ben/foobar/bin/f2py
/Users/ben/foobar/bin/from-template
/Users/ben/foobar/lib/python2.7/site-packages/numpy-1.15.0.dist-info/*
/Users/ben/foobar/lib/python2.7/site-packages/numpy/*
Proceed (y/n)? y
Successfully uninstalled numpy-1.15.0
Collecting numpy==1.14.5
Downloading https://files.pythonhosted.org/packages/b6/5e/4b2c794fb57a42e285d6e0fae0e9163773c5a6a6a7e1794967fc5d2168f2/numpy-1.14.5-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (4.7MB)
100% |████████████████████████████████| 4.7MB 3.0MB/s
Installing collected packages: numpy
Successfully installed numpy-1.14.5
(foobar) ben@earwig:~/foobar $ python
Python 2.7.15 (default, Jun 19 2018, 21:29:04)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy.linalg import solve_toeplitz
>>> # no warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment