ごはんと飲み物は紙一重

このブログは,自己のモチベーションアップのために情報工学関連について記事を更新していこうと思います。三日坊主にならないよう頑張ります…

condaが動いてくれない

ここ最近の話,Terminalから以下のWarningが頻発してたので見てみると・・・

ERROR: The install method you used for conda--probably either `pip install conda`
or `easy_install conda`--is not compatible with using conda as an application.
If your intention is to install conda as a standalone application, currently
supported install methods include the Anaconda installer and the miniconda
installer.  You can download the miniconda installer from
https://conda.io/miniconda.html.

どうやらconda使いたいから,conda入れろやって感じですね.こんなエラーがモジュールをロードするたびにちらほらしてましたね.んでもっていざ,pip install condaとすると・・・

Requirement already satisfied: conda in ./.pyenv/versions/anaconda3-4.2.0/lib/python3.5/site-packages
Requirement already satisfied: requests>=2.12.4 in ./.pyenv/versions/anaconda3-4.2.0/lib/python3.5/site-packages (from conda)
Requirement already satisfied: ruamel.yaml>=0.11.14 in ./.pyenv/versions/anaconda3-4.2.0/lib/python3.5/site-packages (from conda)
Requirement already satisfied: pycosat>=0.6.1 in ./.pyenv/versions/anaconda3-4.2.0/lib/python3.5/site-packages (from conda)
Requirement already satisfied: idna<2.6,>=2.5 in ./.pyenv/versions/anaconda3-4.2.0/lib/python3.5/site-packages (from requests>=2.12.4->conda)
Requirement already satisfied: certifi>=2017.4.17 in ./.pyenv/versions/anaconda3-4.2.0/lib/python3.5/site-packages (from requests>=2.12.4->conda)
Requirement already satisfied: urllib3<1.22,>=1.21.1 in ./.pyenv/versions/anaconda3-4.2.0/lib/python3.5/site-packages (from requests>=2.12.4->conda)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./.pyenv/versions/anaconda3-4.2.0/lib/python3.5/site-packages (from requests>=2.12.4->conda)

ん?すでに入っている?なのにないって言われる・・・pathの問題か.って言ってpathを見てみるとそんな記載はないのでとりあえず,

pip uninstall conda

として環境から消したあとに

pip install conda=4.2.7

とすると,

usage: conda [-h] [-V] command ...

conda is a tool for managing and deploying applications, environments and packages.

Options:

positional arguments:
  command
    info         Display information about current conda install.
    help         Displays a list of available conda commands and their help
                 strings.
    list         List linked packages in a conda environment.
    search       Search for packages and display their information. The input
...

一応動くようになりました.なぜ?