%%bash pip install wheel cd markupsafe rm -rf build # just to be safe python setup.py bdist_wheel !ls markupsafe/dist %%bash mkdir wheel_contents cd wheel_contents unzip ../markupsafe/dist/MarkupSafe-0.23-cp27-none-macosx_10_6_intel.whl %%bash pip install delocate !delocate-listdeps -a markupsafe/dist/MarkupSafe-0.23-cp27-none-macosx_10_6_intel.whl !delocate-listdeps -a scipy-0.14.0-cp27-none-macosx_10_6_intel.whl %%bash mkdir fixed_wheels delocate-wheel -w fixed_wheels scipy-0.14.0-cp27-none-macosx_10_6_intel.whl delocate-listdeps -a fixed_wheels/scipy-0.14.0-cp27-none-macosx_10_6_intel.whl !pip wheel -w my_cache ipython[notebook] ls my_cache %%bash virtualenv scipy-stack-lite . scipy-stack-lite/bin/activate pip install numpy scipy matplotlib !curl https://nipy.bic.berkeley.edu/scipy_installers/scipy-stack-1.0-plus.txt