3
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

windows + anaconda で tensorflow が入らない。

3
Last updated at Posted at 2020-05-08

pipでは入るんだ。でもいやだ。仮想環境の意味がない。

conda install tensorflow

原因はこれ
https://github.com/conda/conda/issues/7203
必要ファイルのパスが長くなりすぎてwindowsのパスの長さ制限に引っかかる。

解決策は二つ提示されていて、

どう考えても後者がおすすめ
anaconda の設定ファイルを触る。なければ以下で C:\Users\ユーザ名\.condarcが作られる。

conda config

ここに以下を記述

pkgs_dirs:
  - c:\conda-pkgs

windows + anaconda にはほぼ必須の設定に思える。

3
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?