Поиск по блогу

суббота, 28 ноября 2015 г.

Между делом: надо не забывать про "conda update conda"

Смотрел видео про виджеты в Питоне. Там авторитетные люди начали с того, что обновили версии. Захотел, чтобы и у меня было, как у людей. Обновился, а "ipython notebook" выдает No module named notebook.notebookapp. Пришлось гуглить... Как бы мне научиться планировать инфраструктурные задачи...

Теперь у меня 4-я версия Ipython

In [ ]:
F:\IPython Notebooks\2015_11\s-trado>ipython
Python 2.7.10 |Anaconda 2.3.0 (64-bit)| (default, Nov  7 2015, 13:18:40) 
[MSC v.1500 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

А получил я ее так:

Под видео (оно в другом посте про виджеты) обновился

In [ ]:
F:\IPython Notebooks\2015_11\s-trado>conda update conda
Fetching package metadata: ....
Solving package specifications: .
Package plan for installation in environment C:\Users\alter_000\Anaconda:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    msvc_runtime-1.0.1         |            vc9_0         1.1 MB
    conda-env-2.4.4            |           py27_2          64 KB
    pyyaml-3.11                |           py27_2         167 KB
    requests-2.8.1             |           py27_0         609 KB
    setuptools-18.5            |           py27_0         648 KB
    wheel-0.26.0               |           py27_1         116 KB
    conda-3.18.6               |           py27_0         219 KB
    pip-7.1.2                  |           py27_0         1.4 MB
    ------------------------------------------------------------
                                           Total:         4.3 MB

The following NEW packages will be INSTALLED:

    msvc_runtime: 1.0.1-vc9_0   [vc9]
    wheel:        0.26.0-py27_1

The following packages will be UPDATED:

    conda:        3.14.1-py27_0 --> 3.18.6-py27_0
    conda-env:    2.2.3-py27_0  --> 2.4.4-py27_2
    pip:          7.0.3-py27_0  --> 7.1.2-py27_0
    pyyaml:       3.11-py27_1   --> 3.11-py27_2
    requests:     2.7.0-py27_0  --> 2.8.1-py27_0
    setuptools:   17.1.1-py27_0 --> 18.5-py27_0

Proceed ([y]/n)? y

Fetching packages ...
msvc_runtime-1 100% |###############################| Time: 0:00:01 814.70 kB/s
conda-env-2.4. 100% |###############################| Time: 0:00:00 189.46 kB/s
pyyaml-3.11-py 100% |###############################| Time: 0:00:00 282.30 kB/s
requests-2.8.1 100% |###############################| Time: 0:00:01 509.97 kB/s
setuptools-18. 100% |###############################| Time: 0:00:01 455.12 kB/s
wheel-0.26.0-p 100% |###############################| Time: 0:00:00 200.98 kB/s
conda-3.18.6-p 100% |###############################| Time: 0:00:00 290.28 kB/s
pip-7.1.2-py27 100% |###############################| Time: 0:00:01 865.08 kB/s
Extracting packages ...
[      COMPLETE      ]|##################################################| 100%
Unlinking packages ...
[      COMPLETE      ]|##################################################| 100%
Linking packages ...
[      COMPLETE      ]|##################################################| 100%

F:\IPython Notebooks\2015_11\s-trado>

Вот, думаю, запомню и вторую команду

In [ ]:
F:\IPython Notebooks\2015_11\s-trado>conda update ipython
Fetching package metadata: ....
Solving package specifications: .................
Package plan for installation in environment C:\Users\alter_000\Anaconda:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    python-2.7.10              |                4        17.9 MB  defaults
    decorator-4.0.4            |           py27_0          11 KB  defaults
    ipython_genutils-0.1.0     |           py27_0          32 KB  defaults
    path.py-8.1.2              |           py27_1          45 KB  defaults
    pyreadline-2.1             |           py27_0         127 KB  defaults
    simplegeneric-0.8.1        |           py27_0           6 KB  defaults
    pickleshare-0.5            |           py27_0           8 KB  defaults
    traitlets-4.0.0            |           py27_0          88 KB  defaults
    ipython-4.0.0              |           py27_1         969 KB  defaults
    ------------------------------------------------------------
                                           Total:        19.2 MB

The following NEW packages will be INSTALLED:

    ipython_genutils: 0.1.0-py27_0 defaults
    path.py:          8.1.2-py27_1 defaults
    pickleshare:      0.5-py27_0   defaults
    simplegeneric:    0.8.1-py27_0 defaults
    traitlets:        4.0.0-py27_0 defaults

The following packages will be UPDATED:

    decorator:        3.4.2-py27_0 defaults --> 4.0.4-py27_0 defaults
    ipython:          3.2.0-py27_0 defaults --> 4.0.0-py27_1 defaults
    pyreadline:       2.0-py27_0   defaults --> 2.1-py27_0   defaults
    python:           2.7.10-0     defaults --> 2.7.10-4     defaults

Proceed ([y]/n)?

Оказывается, надо еще и вот эту

In [ ]:
F:\IPython Notebooks\2015_11\s-trado>pip install jupyter
Collecting jupyter
  Downloading jupyter-1.0.0-py2.py3-none-any.whl
Collecting notebook (from jupyter)
  Downloading notebook-4.0.6-py2.py3-none-any.whl (5.6MB)
    100% |################################| 5.6MB 48kB/s
Collecting ipywidgets (from jupyter)
  Downloading ipywidgets-4.1.1-py2.py3-none-any.whl (117kB)
    100% |################################| 118kB 1.1MB/s
Collecting nbconvert (from jupyter)
  Downloading nbconvert-4.1.0-py2.py3-none-any.whl (281kB)
    100% |################################| 282kB 671kB/s
Collecting ipykernel (from jupyter)
  Downloading ipykernel-4.2.0-py2.py3-none-any.whl (90kB)
    100% |################################| 94kB 1.7MB/s
Collecting jupyter-console (from jupyter)
  Downloading jupyter_console-4.0.3-py2.py3-none-any.whl
Collecting qtconsole (from jupyter)
  Downloading qtconsole-4.1.1-py2.py3-none-any.whl (98kB)
    100% |################################| 102kB 758kB/s
Requirement already satisfied (use --upgrade to upgrade): traitlets in c:\users\alter_000\anaconda\lib\s
ite-packages (from notebook->jupyter)
Requirement already satisfied (use --upgrade to upgrade): tornado>=4 in c:\users\alter_000\anaconda\lib\
site-packages (from notebook->jupyter)
Collecting jupyter-client (from notebook->jupyter)
  Downloading jupyter_client-4.1.1-py2.py3-none-any.whl (70kB)
    100% |################################| 73kB 1.8MB/s
Collecting nbformat (from notebook->jupyter)
  Downloading nbformat-4.0.1-py2.py3-none-any.whl (138kB)
    100% |################################| 139kB 1.2MB/s
Collecting jupyter-core (from notebook->jupyter)
  Downloading jupyter_core-4.0.6-py2.py3-none-any.whl (74kB)
    100% |################################| 77kB 1.8MB/s
Requirement already satisfied (use --upgrade to upgrade): jinja2 in c:\users\alter_000\anaconda\lib\site
-packages (from notebook->jupyter)
Requirement already satisfied (use --upgrade to upgrade): ipython-genutils in c:\users\alter_000\anacond
a\lib\site-packages (from notebook->jupyter)
Requirement already satisfied (use --upgrade to upgrade): ipython>=4.0.0dev0 in c:\users\alter_000\anaco
nda\lib\site-packages (from ipywidgets->jupyter)
Requirement already satisfied (use --upgrade to upgrade): pygments in c:\users\alter_000\anaconda\lib\si
te-packages (from nbconvert->jupyter)
Requirement already satisfied (use --upgrade to upgrade): mistune!=0.6 in c:\users\alter_000\anaconda\li
b\site-packages (from nbconvert->jupyter)
Requirement already satisfied (use --upgrade to upgrade): pyzmq>=13 in c:\users\alter_000\anaconda\lib\s
ite-packages (from jupyter-client->notebook->jupyter)
Requirement already satisfied (use --upgrade to upgrade): jsonschema!=2.5.0,>=2.0 in c:\users\alter_000\
anaconda\lib\site-packages (from nbformat->notebook->jupyter)
Installing collected packages: jupyter-core, jupyter-client, nbformat, ipykernel, nbconvert, notebook, i
pywidgets, jupyter-console, qtconsole, jupyter
Successfully installed ipykernel-4.2.0 ipywidgets-4.1.1 jupyter-1.0.0 jupyter-client-4.1.1 jupyter-conso
le-4.0.3 jupyter-core-4.0.6 nbconvert-4.1.0 nbformat-4.0.1 notebook-4.0.6 qtconsole-4.1.1

F:\IPython Notebooks\2015_11\s-trado>


Посты чуть ниже также могут вас заинтересовать

Комментариев нет:

Отправить комментарий