0
2

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 3 years have passed since last update.

【M1 Mac】miniforgeの仮想環境でWARNINGが出る(備忘録)

Posted at

M1 macで,pythonの開発環境を整えていたら,発生したエラーを備忘録として残す.
brewで導入したminiforgeで仮想環境を作成したところ以下のWARNINGが出た.
(WARNINGだからいいかなと思ったけど一応解決しておく)

エラー

WARNING conda.core.path_actions:verify(962): Unable to create environments file. Path not writable.
         environment location: /Users/username/.conda/environments.txt

何やら,environments.txtに権限がなくて書けないと言っているので,権限を確認してみる.
(以下,usernameは適宜変更する)

ls -lahd /Users/username/.conda/environments.txt

-rw-r--r--  1 root  staff  24 Jun  1 13:36 /Users/username/.conda/environments.txt

なぜか,所有者がrootになってる?

解決方法

これを解決するために,

  • 書き込み権限をroot以外にあげる
  • もしくは,自分が所有者になる

を行う.

今回は,後者で解決する.

sudo chown username:staff /Users/username/.conda/environments.txt

上記のコマンドを実行すると,所有者が変わっていることが確認できる.

-rw-r--r--  1 username  staff    49B Jun 16 09:55 /Users/username/.conda/environments.txt

これで,miniforgeにて,WARNINGが出なくなった.

0
2
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
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?