動機
conda
コマンドは便利だけどシステムのpythonは上書きしてほしくない. python-venv
ぐらいのノリで conda
コマンドを使いたい
pytorchはcondaコマンドでインストールすることを推奨してるので,こっちでインストールしたい
方法
実はPyPIにcondaコマンドは登録されていてこれをインストールすればよい.
ただ単純に pip install conda
でインストールするだけでは以下のように condaにpip経由でインストールしたことを怒られる
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.
しかしこれは4.3系からの仕様なのか,4.2系を入れると特に怒られずにcondaコマンドを使える.つまり pip install conda==4.2.7
でインストールすれば良い
とりあえずこれで conda install
や conda create
が使えているので良しとする