Created
November 18, 2013 05:39
-
-
Save mwcraig/7523054 to your computer and use it in GitHub Desktop.
Log of a terminal session demonstrating the result of upgrading astropy in anaconda using pip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ # make virtual environment based on anaconda 1.8.0 | |
| $ conda create -n apy-pip-conda anaconda | |
| Package plan for creating environment at /Users/mcraig/anaconda/envs/apy-pip-conda: | |
| The following packages will be linked: | |
| package | build | |
| ---------------------------|----------------- | |
| ... | |
| astropy-0.2.5 | np17py27_0 hard-link | |
| ... | |
| # | |
| # To activate this environment, use: | |
| # $ source activate apy-pip-conda | |
| # | |
| # To deactivate this environment, use: | |
| # $ source deactivate | |
| # | |
| $ source activate apy-pip-conda | |
| prepending /Users/mcraig/anaconda/envs/apy-pip-conda/bin to PATH | |
| (apy-pip-conda)$ pip freeze | grep astropy | |
| astropy==0.2.5 | |
| (apy-pip-conda)$ pip uninstall astropy # remove astropy, right? | |
| Uninstalling astropy: | |
| /Users/mcraig/anaconda/envs/apy-pip-conda/lib/python2.7/site-packages/astropy-0.2.5-py2.7-macosx-10.5-x86_64.egg-info | |
| Proceed (y/n)? y | |
| Successfully uninstalled astropy | |
| (apy-pip-conda)$ pip freeze | grep astropy # astropy appears to be gone | |
| (apy-pip-conda)$ conda list | grep astropy # but conda still knows it is there | |
| astropy 0.2.5 np17py27_0 | |
| (apy-pip-conda)$ python # we'll ask python.... | |
| Python 2.7.5 |Anaconda 1.8.0 (x86_64)| (default, Oct 24 2013, 07:02:20) | |
| [GCC 4.0.1 (Apple Inc. build 5493)] on darwin | |
| Type "help", "copyright", "credits" or "license" for more information. | |
| >>> import astropy; astropy.__version__ | |
| '0.2.5' | |
| >>> # yep, astropy is still there | |
| (apy-pip-conda)$ # install 0.3rc1 with pip | |
| (apy-pip-conda)$ pip install https://github.com/astropy/astropy/releases/download/v0.3rc1/astropy-0.3rc1.tar.gz | |
| .... | |
| Successfully installed astropy | |
| Cleaning up... | |
| (apy-pip-conda)$ pip freeze | grep astropy # now we should have 0.3rc1 | |
| astropy==0.3rc1 | |
| (apy-pip-conda)$ conda list | grep astropy # but conda still thinks we have 0.2.5 | |
| astropy 0.2.5 np17py27_0 | |
| (apy-pip-conda)$ python # maybe python knows which version we have... | |
| Python 2.7.5 |Anaconda 1.8.0 (x86_64)| (default, Oct 24 2013, 07:02:20) | |
| [GCC 4.0.1 (Apple Inc. build 5493)] on darwin | |
| >>> import astropy; astropy.__version__ | |
| '0.3rc1' | |
| >>> # we seem to have 0.3... | |
| >>> # check that we really have 0.3 by importing something that was not in 0.2.5: | |
| >>> from astropy.convolution import convolve, Gaussian1DKernel | |
| >>> # no error, so we seem to be good, but: | |
| >>> from astropy.nddata.convolution.make_kernel import make_kernel | |
| >>> # [this should have failed -- it was in 0.2.5 but is not in 0.3! | |
| >>> # not only does it not fail, this function still works, because | |
| >>> # the relevant source file really is still there | |
| >>> make_kernel([3, 3], 1, 'boxcar') | |
| array([[ 0., 0., 0.], | |
| [ 0., 1., 0.], | |
| [ 0., 0., 0.]]) | |
| >>> | |
| (apy-pip-conda)$ source deactivate | |
| discarding /Users/mcraig/anaconda/envs/apy-pip-conda/bin from PATH | |
| $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment