Add library/package ライブラリ/パッケージの追加 pip, conda
- Library > Package > Module
- Different terms... but, simply speaking, something you can get and use for your study.
- 名前が色々あるけれど、簡単に言えば、「取ってきて使うもの」
- PyPI : Py-thon P-ackage I-ndex
-
- python's libraries and packages are registered.
- パイソンのライブラリ/パッケージが登録してある
- Use pip command to install libraries/packages you want to use from the registry.
- pip コマンドを使って、使いたいライブラリ/パッケージを取って来る
- The command "pip" itself should be updated so that you can get the latest libraries/packages.
- コマンド "pip"自体を最新にして、最新のレジストリからライブラリ/パッケージを取って来る
pip install --upgrade pip
pip install hoge
- "conda"
- The command "conda" is to get something you use in your Anaconda-based environment.
- "conda"コマンドはアナコンダを使った作業環境に使用したいものを取って来るコマンド
- It gets python libraries/packages as well as other tools.
- pythonのライブラリ/パッケージも取って来るが、それ以外のツールも取って来る
- It brings them into your Anaconda-environment.
- 取ってきたものは、アナコンダが管理した環境で使えるようになる
- The command pip and the command conda can be used together.... This makes the beginners confused further.
- pip コマンドとconda コマンドとは併用もできるので、さらに混乱しますが…
- The famous libraries/packages are well maintained by both pip-system and conda-system and you might not find big trouble by the choice of pip vs. conda.
- 有名どころのライブラリ/パッケージはよくメンテナンスされているので、pipを使うかcondaを使うかで問題に巻き込まれることは少ないかもしれません。
- Environment to use python パイソンの使用環境
- You can make your computer do your tasks with python commands. The tasks are achieved with the communicating network of "python" itself and python's libraries/packages you downloaded with or without non-python applications.
- パイソンのコマンドを発行することで、コンピュータに仕事をやらせているとき、"python"の本体と、ダウンロードしてきたパイソンのライブラリ/パッケージと、場合によってはパイソンに属さないアプリとを連携したネットワークを使っている
- Python you installed without Anaconda, python already installed when you bought your PC, python you installed with Anaconda..., they behave differently.
- Anacondaを使わずにインストールしたパイソンと、PCを買ったときにすでに入っているパイソンと、アナコンダを使ってインストールしたパイソン.... これらの挙動は違います
- To control these differences, you should pay attention to the different terminals you can use.
- これらの違いをコントロールするために、使える「ターミナル」の違いに注意する必要があります
- It is not wise to learn all the backgrounds of this topic before enjoy the data analysis, but this knowledge will give you hints for the troubles you will face in future. I hope your net-surfing skills to solve the troubles become adequate before you face the first trouble of this kind.
- ここで言うトピックの背景について勉強を終えてからデータサイエンスをするのは得策ではないですが、このことを少しでも聞いておくと、いざ、トラブルに見舞われたときのとっかかりになるので書いておきます。いざ、この手のトラブルに見舞われたとき、コンピュータスキルが上がっていて、自力でネットサーフするなどして問題解決できるようになっていることを祈ります