Anaconda

【Anaconda】モジュールのアップデートでエラー発生

Anacondaに含まれる全てのモジュール(パッケージ)のバージョンを更新するには、コマンドプロンプトから

 

conda update --all

 

と入力します。(allの前はハイフン(-)が2つです。)

 

module_update_error

 

すると、Proceed([y]/n)?と聞かれるので y を入力してEnter

 

module_update_error

 

しかし、こんなエラー↓が表示されて進まない。。。


CondaIOError: IO error: Missing write permissions in: C:\Program Files\Anaconda3
#
# You don’t appear to have the necessary permissions to update packages
# into the install area ‘C:\Program Files\Anaconda3’.
# However you can clone this environment into your home directory and
# then make changes to it.
# This may be done using the command:
#
# $ conda create -n my_root –clone=C:\Program Files\Anaconda3


 

エラーを見る限り「Missing write permissions」と書かれているので、”C:\Program Files\Anaconda3″のフォルダに書き込み権限がなくて怒られているらしい。

 

ということで、管理者権限で実行すればよいのですが、その方法はスタート→Windowsシステムツール→コマンドプロンプトと選択し、そのまま実行するのではなく、コマンドプロンプトを右ボタンクリックし、その他→管理者として実行と行い、コマンドプロンプトを管理者権限で実行します。

 

module_update_error

 

再度、コマンドプロンプトより

conda update --all

と入力し、Proceed([y]/n)?と聞かれるので y を入力してEnterと入力すると、今度はその先へ進み、このような画面↓になれば、成功のようです。

 

module_update_error

コメント

タイトルとURLをコピーしました