Skip to content

Instantly share code, notes, and snippets.

@japsu
Last active February 9, 2022 21:34
Show Gist options
  • Select an option

  • Save japsu/6064e85c33c0ff2e7ad8 to your computer and use it in GitHub Desktop.

Select an option

Save japsu/6064e85c33c0ff2e7ad8 to your computer and use it in GitHub Desktop.

Revisions

  1. japsu revised this gist Feb 9, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # ARCHIVED: How to get NumPy and SciPy working in a virtualenv under Mac OS X

    **Please don't use this method any more, this is ages old.**
    **Please don't use this method any more, this is ages old (2014, Python 2.7).**

    Assuming you use `virtualenv` for Python library hygiene. Now you want Numpy and Scipy in your project.

  2. japsu revised this gist Feb 9, 2022. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    # How to get NumPy and SciPy working in a virtualenv under Mac OS X
    # ARCHIVED: How to get NumPy and SciPy working in a virtualenv under Mac OS X

    **Please don't use this method any more, this is ages old.**

    Assuming you use `virtualenv` for Python library hygiene. Now you want Numpy and Scipy in your project.

  3. Santtu Pajukanta revised this gist Oct 20, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # How to get NumPy and SciPy working in a virtualenv under Mac OS X

    Assuming you use Virtualenv for Python library hygiene. Now you want Numpy and Scipy in your project.
    Assuming you use `virtualenv` for Python library hygiene. Now you want Numpy and Scipy in your project.

    NumPy and SciPy can not be easily installed under Mac OS X with a simple

  4. Santtu Pajukanta revised this gist Oct 20, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # How to get NumPy and SciPy working in a virtualenv under Mac OS X

    Assuming you use Virtualenv for Python library hygiene. Now you want Numpy and Scipy in your project.

    NumPy and SciPy can not be easily installed under Mac OS X with a simple
  5. Santtu Pajukanta created this gist Oct 20, 2014.
    27 changes: 27 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    Assuming you use Virtualenv for Python library hygiene. Now you want Numpy and Scipy in your project.

    NumPy and SciPy can not be easily installed under Mac OS X with a simple

    pip install scipy

    due to heavy dependencies.

    However, [homebrew-python](https://github.com/homebrew/homebrew-python) provides them as recipes. Therefore you can

    1. install `numpy` and `scipy` from `homebrew-python`
    2. symlink them into a virtualenv

    Try it:

    brew install homebrew/python/scipy
    python -m virtualenv venv-playground
    ln -s /usr/local/lib/python2.7/site-packages/{numpy,scipy}* venv-playground/lib/python2.7/site-packages/
    source venv-playground/bin/activate
    pip freeze

    You should see something like this:

    numpy==1.9.0
    scipy==0.14.0
    wsgiref==0.1.2