pipでは入るんだ。でもいやだ。仮想環境の意味がない。
conda install tensorflow
原因はこれ
https://github.com/conda/conda/issues/7203
必要ファイルのパスが長くなりすぎてwindowsのパスの長さ制限に引っかかる。
解決策は二つ提示されていて、
- レジストリをいじって長いパスを参照できるようにする。https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/The-Windows-10-default-path-length-limitation-MAX-PATH-is-256-characters.html
- anaconda のパッケージを指定したフォルダにする。
どう考えても後者がおすすめ
anaconda の設定ファイルを触る。なければ以下で C:\Users\ユーザ名\.condarcが作られる。
conda config
ここに以下を記述
pkgs_dirs:
- c:\conda-pkgs
windows + anaconda にはほぼ必須の設定に思える。