2017-01-14 6 views
0

Windows 10にpython 2.7をインストールし、HOME、PATH環境変数を設定しました。私のWindows 10にpython 2.7でjupyterをインストールするときにこのエラーを解決する方法

Collecting jupyter 
    Using cached jupyter-1.0.0-py2.py3-none-any.whl 
Collecting ipykernel (from jupyter) 
    Using cached ipykernel-4.5.2-py2.py3-none-any.whl 
Collecting jupyter-console (from jupyter) 
    Using cached jupyter_console-5.0.0-py2.py3-none-any.whl 
Collecting ipywidgets (from jupyter) 
    Using cached ipywidgets-5.2.2-py2.py3-none-any.whl 
Collecting nbconvert (from jupyter) 
    Using cached nbconvert-5.0.0-py2.py3-none-any.whl 
Collecting notebook (from jupyter) 
    Using cached notebook-4.3.1-py2.py3-none-any.whl 
Collecting qtconsole (from jupyter) 
    Using cached qtconsole-4.2.1-py2.py3-none-any.whl 
Collecting tornado>=4.0 (from ipykernel->jupyter) 
    Using cached tornado-4.4.2.tar.gz 
Collecting jupyter-client (from ipykernel->jupyter) 
    Using cached jupyter_client-4.4.0-py2.py3-none-any.whl 
Collecting ipython>=4.0.0 (from ipykernel->jupyter) 
    Using cached ipython-5.1.0-py2-none-any.whl 
Collecting traitlets>=4.1.0 (from ipykernel->jupyter) 
    Using cached traitlets-4.3.1-py2.py3-none-any.whl 
Collecting prompt-toolkit<2.0.0,>=1.0.0 (from jupyter-console->jupyter) 
    Using cached prompt_toolkit-1.0.9-py2-none-any.whl 
Collecting pygments (from jupyter-console->jupyter) 
    Using cached Pygments-2.1.3-py2.py3-none-any.whl 
Collecting widgetsnbextension>=1.2.6 (from ipywidgets->jupyter) 
    Using cached widgetsnbextension-1.2.6-py2.py3-none-any.whl 
Collecting testpath (from nbconvert->jupyter) 
    Using cached testpath-0.3-py2.py3-none-any.whl 
Collecting pandocfilters>=1.4.1 (from nbconvert->jupyter) 
    Using cached pandocfilters-1.4.1.tar.gz 
Collecting jinja2 (from nbconvert->jupyter) 
    Using cached Jinja2-2.9.4-py2.py3-none-any.whl 
Collecting jupyter-core (from nbconvert->jupyter) 
    Using cached jupyter_core-4.2.1-py2.py3-none-any.whl 
Collecting bleach (from nbconvert->jupyter) 
    Using cached bleach-1.5.0-py2.py3-none-any.whl 
Collecting mistune!=0.6 (from nbconvert->jupyter) 
    Using cached mistune-0.7.3-py2.py3-none-any.whl 
Collecting nbformat (from nbconvert->jupyter) 
    Using cached nbformat-4.2.0-py2.py3-none-any.whl 
Collecting entrypoints>=0.2.2 (from nbconvert->jupyter) 
    Using cached entrypoints-0.2.2-py2.py3-none-any.whl 
Collecting ipython-genutils (from notebook->jupyter) 
    Using cached ipython_genutils-0.1.0-py2.py3-none-any.whl 
Collecting singledispatch (from tornado>=4.0->ipykernel->jupyter) 
    Using cached singledispatch-3.4.0.3-py2.py3-none-any.whl 
Collecting certifi (from tornado>=4.0->ipykernel->jupyter) 
    Using cached certifi-2016.9.26-py2.py3-none-any.whl 
Collecting backports_abc>=0.4 (from tornado>=4.0->ipykernel->jupyter) 
    Using cached backports_abc-0.5-py2.py3-none-any.whl 
Collecting pyzmq>=13 (from jupyter-client->ipykernel->jupyter) 
    Using cached pyzmq-16.0.2-cp27-cp27m-win32.whl 
Collecting win-unicode-console>=0.5; sys_platform == "win32" (from ipython>=4.0.0->ipykernel->jupyter) 
    Using cached win_unicode_console-0.5.zip 
Collecting pickleshare (from ipython>=4.0.0->ipykernel->jupyter) 
    Using cached pickleshare-0.7.4-py2.py3-none-any.whl 
Collecting decorator (from ipython>=4.0.0->ipykernel->jupyter) 
    Using cached decorator-4.0.10-py2.py3-none-any.whl 
Collecting backports.shutil-get-terminal-size; python_version == "2.7" (from ipython>=4.0.0->ipykernel->jupyter) 
    Using cached backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.whl 
Requirement already satisfied: setuptools>=18.5 in c:\python27\lib\site-packages (from ipython>=4.0.0->ipykernel->jupyter) 
Collecting pathlib2; python_version == "2.7" or python_version == "3.3" (from ipython>=4.0.0->ipykernel->jupyter) 
    Using cached pathlib2-2.2.0-py2.py3-none-any.whl 
Collecting simplegeneric>0.8 (from ipython>=4.0.0->ipykernel->jupyter) 
    Using cached simplegeneric-0.8.1.zip 
Collecting colorama; sys_platform == "win32" (from ipython>=4.0.0->ipykernel->jupyter) 
    Using cached colorama-0.3.7-py2.py3-none-any.whl 
Collecting enum34; python_version == "2.7" (from traitlets>=4.1.0->ipykernel->jupyter) 
    Using cached enum34-1.1.6-py2-none-any.whl 
Collecting six (from traitlets>=4.1.0->ipykernel->jupyter) 
    Using cached six-1.10.0-py2.py3-none-any.whl 
Collecting wcwidth (from prompt-toolkit<2.0.0,>=1.0.0->jupyter-console->jupyter) 
    Using cached wcwidth-0.1.7-py2.py3-none-any.whl 
Collecting MarkupSafe>=0.23 (from jinja2->nbconvert->jupyter) 
    Using cached MarkupSafe-0.23.tar.gz 
Collecting html5lib!=0.9999,!=0.99999,<0.99999999,>=0.999 (from bleach->nbconvert->jupyter) 
    Using cached html5lib-0.9999999.tar.gz 
Collecting jsonschema!=2.5.0,>=2.4 (from nbformat->nbconvert->jupyter) 
    Using cached jsonschema-2.5.1-py2.py3-none-any.whl 
Collecting configparser>=3.5; python_version == "2.7" (from entrypoints>=0.2.2->nbconvert->jupyter) 
    Using cached configparser-3.5.0.tar.gz 
Collecting scandir (from pathlib2; python_version == "2.7" or python_version == "3.3"->ipython>=4.0.0->ipykernel->jupyter) 
    Using cached scandir-1.4.zip 
Exception: 
Traceback (most recent call last): 
    File "c:\python27\lib\site-packages\pip\basecommand.py", line 215, in main 
    status = self.run(options, args) 
    File "c:\python27\lib\site-packages\pip\commands\install.py", line 324, in run 
    requirement_set.prepare_files(finder) 
    File "c:\python27\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files 
    ignore_dependencies=self.ignore_dependencies)) 
    File "c:\python27\lib\site-packages\pip\req\req_set.py", line 620, in _prepare_file 
    session=self.session, hashes=hashes) 
    File "c:\python27\lib\site-packages\pip\download.py", line 821, in unpack_url 
    hashes=hashes 
    File "c:\python27\lib\site-packages\pip\download.py", line 663, in unpack_http_url 
    unpack_file(from_path, location, content_type, link) 
    File "c:\python27\lib\site-packages\pip\utils\__init__.py", line 599, in unpack_file 
    flatten=not filename.endswith('.whl') 
    File "c:\python27\lib\site-packages\pip\utils\__init__.py", line 499, in unzip_file 
    fp = open(fn, 'wb') 
IOError: [Errno 22] invalid mode ('wb') or filename: 'c:\\users\\wonhee\\appdata\\local\\temp\\pip-build-o9imsa\\scandir\\test/testdir/subdir/unicod\xc6\x8f.txt 

私はerrnoを22 のことは知らない私にいくつかの解決策を教えてください:

が、結果はこのようなものですjupyter

ピップをインストール型付けこの問題のために。ありがとうございます

+0

私は使用をお勧めします([Jupyterをインストールする推奨方法]で[アナコンダ](https://www.continuum.io/downloads)、http://jupyter.org /install.html)。 –

答えて

0

私はあなたの主な問題は 'scandir'パッケージだと思います。 実際、私はあなたと同じ問題を抱えていましたが、私は以下のように解決しました。

  • 「scandir」パッケージを手動でインストールする必要があります。 'SCANDIR-1.4' フォルダが
  • ですhttps://pypi.python.org/pypi/scandir
  • と 'scandir-1.4.zip(MD5)' をダウンロードし、それ
  • オープンCMDを解凍し、ディレクトリに移動します。
    1. はここに行きますタイプjupyter

歓声をインストールし、再試行してください、インストール終了後に

  • 'をPythonはsetup.py installを'。私の場合は

  • +0

    それでもMSVCのインストールが必要なので、ほとんどの人にとって元の問題は解決しません。あなたがやっていることは、ピップがやっていることの単なるマニュアルです。 –

    0

    は、SCANDIRは、私はバイナリパッケージなしSCANDIRをインストールするにはPythonの開発ツール

    sudo apt-get install python-dev 
    
    0

    をインストールしていなかったので、http://www.lfd.uci.edu/~gohlke/

    からSCANDIRの公式バイナリパッケージを使用して失敗したインストール次に実行する(例えば)

    pip install scandir‑1.5‑cp27‑cp27m‑win32.whl 
    
    関連する問題