Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PythonとJupyterの インストールと実行 / python-jupyter-install

PythonとJupyterの インストールと実行 / python-jupyter-install

Python機械学習勉強会 in 新潟 Restart #2 の入門編にて、PythonとJupyterのインストール時の解説資料

kasacchiful

October 13, 2018
Tweet

More Decks by kasacchiful

Other Decks in Programming

Transcript

  1. Python0   – WindowsPython 0 Mac OSLinux Python 0

    –  ,#$*3Python&"),74  – !(,%'+,'$2python -V01  $ python -V Python 2.7.15 $ – -5python 2.7.156 python 3.x.x ,# $* /.python3!(,% /.  $ python3 -V Python 3.6.5 $
  2. Python 2%(0 WindowsK – WindowsPythonA:64Python;D" ( FI Windows 2%(.A: –

    20183105?E<7*$-23.7.0 JG>= B . ,./  3.6.6C: –  Python Release Python 3.6.6  https://www.python.org/downloads/release/python-366/, .!#9  OS@8   2% (.&!21)!#)H 2%( 0 – 64+'(K: Windows x86-64 executable installer – 32+'(K: Windows x86 executable installer
  3. Python #:*/8 Mac OSW – Mac OSPython3!#:*/8=@PythonD M'#/OU  MacOS#:*/6!JC=

    @%4:+*2-&)PB.8 HomebrewMacPort!JC=@  – #:*/6!L =@!XQ – 2018;10<HNE>1)5:3.7.0 VSGF K 6#367 3.6.6!LC –  Python Release Python 3.6.6  https://www.python.org/downloads/release/python-366/!3 6$(A  OSI?  #:* /6!,$:90$"(0T#:*/ 8 – 10.9IR: macOS 64-bit installer – 10.6IR: macOS 64-bit/32-bit installer
  4. venv! – Python!SwQqB0?BC.i%j3@F87 B0?BCka=956, $ – B0?BC!p B0?BCsk +' 

    *$ NJ!^G-, +' Z &<6A Fb-+RoHc+IH *$ – rW 8>;12/.NJ +IH  8>;12 / NJ]P +B0?BC.<6AF/9@ p 8>;12/tlU TXK (  @E624;B0?BC OdIV.b+S\. Y:D * B0?BCfe .ugf e n# *$ –  :D!rWka$Python3.6)!m` venvn",+:Dv_, +&ML!,. ]P+$
  5. venv 210/  – 210/.+ – !$ #$  )-'(

    – 0/ Python3.6python3 &%  – $python –m venv 210/", – 210/* – Windows&% – >.¥210/",¥Scripts¥activate – MacOS/Linux&% – $source 210/",/bin/activate
  6. venv A>=< 6* – A>=<7?0 !& %& ,A>=< 3-25 

    – 9: +@ !"!&pip6 ##$;1   – A>=<8?0 – A>=<8?0 .4!&/'   – Windows/MacOS/Linux)( – $deactivate
  7. Anaconda )( "! – Anaconda  "!'# ,*)( '# conda

     &  – + – $ conda create --name env python # )( %$ – $ source activate env #  – (env) $ conda install requests #   – (env) $ source deactivate # 
  8. pip  – pipPython3:5 4< &$&'#80 (  – *"

    +'% '&$&'# *)! * (   – &$&'-7=9/380 &$&'6 2;&$&',1.*)! *  (  
  9. pip% --!   –    pip install

     – #   pip install  == –     pip install  --upgrade –  $& pip search – " ' pip list –     pip uninstall 
  10. Jupyter – JupyterWeb7<&,APython8>+<9ZSHC  2= – HC@TK(7-'*4 Kernel8>/.@ IL !

    %?0<*3$78>+<9GD   – NotebookY! 6#%=8>+<9   7>+O"! Markdown Y! ][MF 5);:?4 MW KRLaTexMF ! JN  – PV  +<6Q\8>+<9BE NotebookIX  – NotebookHTMLTeXPDFU1&?>5  
  11. Jupyter  – Jupyter pip  Jupyter   !

       pip install jupyter
  12. Jupyter Notebook 94 – Jupyter Notebook8Python@=<: 26 (- 30 

    jupyter notebook – %,*)94 94 "-.';> 5000? !94A1Web$*94 !8 #+/B&57 
  13. 3 3

  14.   07(5   7%  &9$  .+

        &8/  "3*  &3*  '#,3* '#!1 -2* -2*)'#  4607  
  15. Jupyter '& –   %" + – Windows+ Jupyter

    Notebook # https://qiita.com/acknpop/items/4e5b57e38780068a9155 – Jupyter Notebook# ) Mac 1 Vivaldi2 https://qiita.com/nannoki/items/315a12a8700c1ca92da3 –   # $ jupyter notebook --generate-config $ jupyter notebook password – Markdown( – Markdown -( https://tatesuke.github.io/KanTanMarkdown/syntax.html – $*((Jupyter *   – https://jupyter- notebook.readthedocs.io/en/latest/examples/Notebook/Typesett ing%20Equations.html – .-!)Jupyter Extentions – [&*] Jupyter "!',0/   https://qiita.com/simonritchie/items/88161c806197a0b84174 – ,PDF – $%. Jupyter NotebookPDF  https://qiita.com/masa-ita/items/8d5ebe8afe0d580af184