Closed3

【Mac】tensorflowの仮想環境を作ると「Unable to create environments file. Path not writable.」

おっくソおっくソ

@ITの記事でtensowflowを始めてみる。
https://www.atmarkit.co.jp/ait/articles/1804/19/news136.html

「introtensorflow」という名前で仮想環境を作ってみると、「Unable to create environments file. Path not writable.」というメッセージが。

Pathの設定がうまくいっていないのかな。

でも仮想環境をactivateはできてるっぽいけど。

(base) MacBook-Pro:~ username$ conda info -e
# conda environments:
#
base                  *  /Applications/anaconda3

(base) MacBook-Pro:~ username$ conda create -n introtensorflow
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Applications/anaconda3/envs/introtensorflow



Proceed ([y]/n)? y

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

done
Executing transaction: - WARNING conda.core.envs_manager:register_env(50): Unable to register environment. Path not writable or missing.
  environment location: /Applications/anaconda3/envs/introtensorflow
  registry file: /Users/username/.conda/environments.txt
done
#
# To activate this environment, use
#
#     $ conda activate introtensorflow
#
# To deactivate an active environment, use
#
#     $ conda deactivate

(base) MacBook-Pro:~ username$ conda info -e
# conda environments:
#
base                  *  /Applications/anaconda3
introtensorflow          /Applications/anaconda3/envs/introtensorflow

(base) MacBook-Pro:~ username$ conda activate introtensorflow
(introtensorflow) MacBook-Pro:~ username$ 
おっくソおっくソ

そのあとのjupyterをインストールするところで案の定エラーが出ました。

(base) MacBook-Pro:~ username$ conda activate introtensorflow
(introtensorflow) MacBook-Pro:~ username$ conda install jupyter
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Applications/anaconda3/envs/introtensorflow

  added / updated specs:
    - jupyter


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    appnope-0.1.2              |py39hecd8cb5_1001          10 KB
    argon2-cffi-20.1.0         |   py39h9ed2024_1          44 KB
    async_generator-1.10       |     pyhd3eb1b0_0          23 KB
    backcall-0.2.0             |     pyhd3eb1b0_0          13 KB
    bleach-3.2.3               |     pyhd3eb1b0_0         113 KB
    ca-certificates-2021.1.19  |       hecd8cb5_0         121 KB
    certifi-2020.12.5          |   py39hecd8cb5_0         141 KB
    cffi-1.14.4                |   py39h2125817_0         217 KB
    decorator-4.4.2            |     pyhd3eb1b0_0          12 KB
    entrypoints-0.3            |   py39hecd8cb5_0          12 KB
    ipykernel-5.3.4            |   py39h01d92e1_0         180 KB
    ipython-7.19.0             |   py39h01d92e1_1         994 KB
    ipython_genutils-0.2.0     |     pyhd3eb1b0_1          27 KB
    ipywidgets-7.6.3           |     pyhd3eb1b0_1         105 KB
    jedi-0.17.2                |   py39hecd8cb5_1         921 KB
    jinja2-2.11.2              |     pyhd3eb1b0_0          93 KB
    jupyter-1.0.0              |   py39hecd8cb5_7           8 KB
    jupyter_core-4.7.0         |   py39hecd8cb5_0          71 KB
    jupyterlab_widgets-1.0.0   |     pyhd3eb1b0_1         109 KB
    markupsafe-1.1.1           |   py39h9ed2024_0          27 KB
    mistune-0.8.4              |py39h9ed2024_1000          57 KB
    nbconvert-6.0.7            |   py39hecd8cb5_0         492 KB
    nbformat-5.1.2             |     pyhd3eb1b0_1          68 KB
    nest-asyncio-1.4.3         |     pyhd3eb1b0_0          11 KB
    notebook-6.2.0             |   py39hecd8cb5_0         4.1 MB
    openssl-1.1.1i             |       h9ed2024_0         2.2 MB
    packaging-20.9             |     pyhd3eb1b0_0          37 KB
    pandocfilters-1.4.3        |   py39hecd8cb5_1          14 KB
    pexpect-4.8.0              |     pyhd3eb1b0_3          53 KB
    pickleshare-0.7.5          |  pyhd3eb1b0_1003          13 KB
    pip-20.3.3                 |   py39hecd8cb5_0         1.8 MB
    prometheus_client-0.9.0    |     pyhd3eb1b0_0          45 KB
    ptyprocess-0.7.0           |     pyhd3eb1b0_2          17 KB
    pygments-2.7.4             |     pyhd3eb1b0_0         676 KB
    pyparsing-2.4.7            |     pyhd3eb1b0_0          59 KB
    pyqt-5.9.2                 |   py39h23ab428_6         3.7 MB
    pyrsistent-0.17.3          |   py39h9ed2024_0          92 KB
    python-3.9.1               |       h88f2d9e_2         9.9 MB
    python-dateutil-2.8.1      |     pyhd3eb1b0_0         221 KB
    pyzmq-20.0.0               |   py39h23ab428_1         405 KB
    readline-8.1               |       h9ed2024_0         333 KB
    send2trash-1.5.0           |     pyhd3eb1b0_1          14 KB
    setuptools-52.0.0          |   py39hecd8cb5_0         724 KB
    sip-4.19.13                |   py39h23ab428_0         243 KB
    six-1.15.0                 |   py39hecd8cb5_0          27 KB
    terminado-0.9.2            |   py39hecd8cb5_0          25 KB
    testpath-0.4.4             |     pyhd3eb1b0_0          85 KB
    tornado-6.1                |   py39h9ed2024_0         587 KB
    traitlets-5.0.5            |     pyhd3eb1b0_0          81 KB
    tzdata-2020f               |       h52ac0ba_0         113 KB
    webencodings-0.5.1         |   py39hecd8cb5_1          20 KB
    wheel-0.36.2               |     pyhd3eb1b0_0          33 KB
    widgetsnbextension-3.5.1   |   py39hecd8cb5_0         863 KB
    ------------------------------------------------------------
                                           Total:        30.0 MB

The following NEW packages will be INSTALLED:

  appnope            pkgs/main/osx-64::appnope-0.1.2-py39hecd8cb5_1001
  argon2-cffi        pkgs/main/osx-64::argon2-cffi-20.1.0-py39h9ed2024_1
  async_generator    pkgs/main/noarch::async_generator-1.10-pyhd3eb1b0_0
  attrs              pkgs/main/noarch::attrs-20.3.0-pyhd3eb1b0_0
  backcall           pkgs/main/noarch::backcall-0.2.0-pyhd3eb1b0_0
  bleach             pkgs/main/noarch::bleach-3.2.3-pyhd3eb1b0_0
  ca-certificates    pkgs/main/osx-64::ca-certificates-2021.1.19-hecd8cb5_0
  certifi            pkgs/main/osx-64::certifi-2020.12.5-py39hecd8cb5_0
  cffi               pkgs/main/osx-64::cffi-1.14.4-py39h2125817_0
  decorator          pkgs/main/noarch::decorator-4.4.2-pyhd3eb1b0_0
  defusedxml         pkgs/main/noarch::defusedxml-0.6.0-py_0
  entrypoints        pkgs/main/osx-64::entrypoints-0.3-py39hecd8cb5_0
  icu                pkgs/main/osx-64::icu-58.2-h0a44026_3
  importlib-metadata pkgs/main/noarch::importlib-metadata-2.0.0-py_1
  importlib_metadata pkgs/main/noarch::importlib_metadata-2.0.0-1
  ipykernel          pkgs/main/osx-64::ipykernel-5.3.4-py39h01d92e1_0
  ipython            pkgs/main/osx-64::ipython-7.19.0-py39h01d92e1_1
  ipython_genutils   pkgs/main/noarch::ipython_genutils-0.2.0-pyhd3eb1b0_1
  ipywidgets         pkgs/main/noarch::ipywidgets-7.6.3-pyhd3eb1b0_1
  jedi               pkgs/main/osx-64::jedi-0.17.2-py39hecd8cb5_1
  jinja2             pkgs/main/noarch::jinja2-2.11.2-pyhd3eb1b0_0
  jpeg               pkgs/main/osx-64::jpeg-9b-he5867d9_2
  jsonschema         pkgs/main/noarch::jsonschema-3.2.0-py_2
  jupyter            pkgs/main/osx-64::jupyter-1.0.0-py39hecd8cb5_7
  jupyter_client     pkgs/main/noarch::jupyter_client-6.1.7-py_0
  jupyter_console    pkgs/main/noarch::jupyter_console-6.2.0-py_0
  jupyter_core       pkgs/main/osx-64::jupyter_core-4.7.0-py39hecd8cb5_0
  jupyterlab_pygmen~ pkgs/main/noarch::jupyterlab_pygments-0.1.2-py_0
  jupyterlab_widgets pkgs/main/noarch::jupyterlab_widgets-1.0.0-pyhd3eb1b0_1
  libcxx             pkgs/main/osx-64::libcxx-10.0.0-1
  libedit            pkgs/main/osx-64::libedit-3.1.20191231-h1de35cc_1
  libffi             pkgs/main/osx-64::libffi-3.3-hb1e8313_2
  libpng             pkgs/main/osx-64::libpng-1.6.37-ha441bb4_0
  libsodium          pkgs/main/osx-64::libsodium-1.0.18-h1de35cc_0
  markupsafe         pkgs/main/osx-64::markupsafe-1.1.1-py39h9ed2024_0
  mistune            pkgs/main/osx-64::mistune-0.8.4-py39h9ed2024_1000
  nbclient           pkgs/main/noarch::nbclient-0.5.1-py_0
  nbconvert          pkgs/main/osx-64::nbconvert-6.0.7-py39hecd8cb5_0
  nbformat           pkgs/main/noarch::nbformat-5.1.2-pyhd3eb1b0_1
  ncurses            pkgs/main/osx-64::ncurses-6.2-h0a44026_1
  nest-asyncio       pkgs/main/noarch::nest-asyncio-1.4.3-pyhd3eb1b0_0
  notebook           pkgs/main/osx-64::notebook-6.2.0-py39hecd8cb5_0
  openssl            pkgs/main/osx-64::openssl-1.1.1i-h9ed2024_0
  packaging          pkgs/main/noarch::packaging-20.9-pyhd3eb1b0_0
  pandoc             pkgs/main/osx-64::pandoc-2.11-h0dc7051_0
  pandocfilters      pkgs/main/osx-64::pandocfilters-1.4.3-py39hecd8cb5_1
  parso              pkgs/main/noarch::parso-0.7.0-py_0
  pexpect            pkgs/main/noarch::pexpect-4.8.0-pyhd3eb1b0_3
  pickleshare        pkgs/main/noarch::pickleshare-0.7.5-pyhd3eb1b0_1003
  pip                pkgs/main/osx-64::pip-20.3.3-py39hecd8cb5_0
  prometheus_client  pkgs/main/noarch::prometheus_client-0.9.0-pyhd3eb1b0_0
  prompt-toolkit     pkgs/main/noarch::prompt-toolkit-3.0.8-py_0
  prompt_toolkit     pkgs/main/noarch::prompt_toolkit-3.0.8-0
  ptyprocess         pkgs/main/noarch::ptyprocess-0.7.0-pyhd3eb1b0_2
  pycparser          pkgs/main/noarch::pycparser-2.20-py_2
  pygments           pkgs/main/noarch::pygments-2.7.4-pyhd3eb1b0_0
  pyparsing          pkgs/main/noarch::pyparsing-2.4.7-pyhd3eb1b0_0
  pyqt               pkgs/main/osx-64::pyqt-5.9.2-py39h23ab428_6
  pyrsistent         pkgs/main/osx-64::pyrsistent-0.17.3-py39h9ed2024_0
  python             pkgs/main/osx-64::python-3.9.1-h88f2d9e_2
  python-dateutil    pkgs/main/noarch::python-dateutil-2.8.1-pyhd3eb1b0_0
  pyzmq              pkgs/main/osx-64::pyzmq-20.0.0-py39h23ab428_1
  qt                 pkgs/main/osx-64::qt-5.9.7-h468cd18_1
  qtconsole          pkgs/main/noarch::qtconsole-4.7.7-py_0
  qtpy               pkgs/main/noarch::qtpy-1.9.0-py_0
  readline           pkgs/main/osx-64::readline-8.1-h9ed2024_0
  send2trash         pkgs/main/noarch::send2trash-1.5.0-pyhd3eb1b0_1
  setuptools         pkgs/main/osx-64::setuptools-52.0.0-py39hecd8cb5_0
  sip                pkgs/main/osx-64::sip-4.19.13-py39h23ab428_0
  six                pkgs/main/osx-64::six-1.15.0-py39hecd8cb5_0
  sqlite             pkgs/main/osx-64::sqlite-3.33.0-hffcf06c_0
  terminado          pkgs/main/osx-64::terminado-0.9.2-py39hecd8cb5_0
  testpath           pkgs/main/noarch::testpath-0.4.4-pyhd3eb1b0_0
  tk                 pkgs/main/osx-64::tk-8.6.10-hb0a8c7a_0
  tornado            pkgs/main/osx-64::tornado-6.1-py39h9ed2024_0
  traitlets          pkgs/main/noarch::traitlets-5.0.5-pyhd3eb1b0_0
  tzdata             pkgs/main/noarch::tzdata-2020f-h52ac0ba_0
  wcwidth            pkgs/main/noarch::wcwidth-0.2.5-py_0
  webencodings       pkgs/main/osx-64::webencodings-0.5.1-py39hecd8cb5_1
  wheel              pkgs/main/noarch::wheel-0.36.2-pyhd3eb1b0_0
  widgetsnbextension pkgs/main/osx-64::widgetsnbextension-3.5.1-py39hecd8cb5_0
  xz                 pkgs/main/osx-64::xz-5.2.5-h1de35cc_0
  zeromq             pkgs/main/osx-64::zeromq-4.3.3-hb1e8313_3
  zipp               pkgs/main/noarch::zipp-3.4.0-pyhd3eb1b0_0
  zlib               pkgs/main/osx-64::zlib-1.2.11-h1de35cc_3


Proceed ([y]/n)? y


Downloading and Extracting Packages
pygments-2.7.4       | 676 KB    | ##################################### | 100% 
nbformat-5.1.2       | 68 KB     | ##################################### | 100% 
send2trash-1.5.0     | 14 KB     | ##################################### | 100% 
testpath-0.4.4       | 85 KB     | ##################################### | 100% 
ca-certificates-2021 | 121 KB    | ##################################### | 100% 
nest-asyncio-1.4.3   | 11 KB     | ##################################### | 100% 
entrypoints-0.3      | 12 KB     | ##################################### | 100% 
ipywidgets-7.6.3     | 105 KB    | ##################################### | 100% 
ipykernel-5.3.4      | 180 KB    | ##################################### | 100% 
jupyterlab_widgets-1 | 109 KB    | ##################################### | 100% 
jupyter-1.0.0        | 8 KB      | ##################################### | 100% 
sip-4.19.13          | 243 KB    | ##################################### | 100% 
jinja2-2.11.2        | 93 KB     | ##################################### | 100% 
webencodings-0.5.1   | 20 KB     | ##################################### | 100% 
bleach-3.2.3         | 113 KB    | ##################################### | 100% 
pyqt-5.9.2           | 3.7 MB    | ##################################### | 100% 
async_generator-1.10 | 23 KB     | ##################################### | 100% 
packaging-20.9       | 37 KB     | ##################################### | 100% 
pip-20.3.3           | 1.8 MB    | ##################################### | 100% 
ipython_genutils-0.2 | 27 KB     | ##################################### | 100% 
tornado-6.1          | 587 KB    | ##################################### | 100% 
ipython-7.19.0       | 994 KB    | ##################################### | 100% 
terminado-0.9.2      | 25 KB     | ##################################### | 100% 
jupyter_core-4.7.0   | 71 KB     | ##################################### | 100% 
pyzmq-20.0.0         | 405 KB    | ##################################### | 100% 
cffi-1.14.4          | 217 KB    | ##################################### | 100% 
python-3.9.1         | 9.9 MB    | ##################################### | 100% 
pexpect-4.8.0        | 53 KB     | ##################################### | 100% 
decorator-4.4.2      | 12 KB     | ##################################### | 100% 
certifi-2020.12.5    | 141 KB    | ##################################### | 100% 
ptyprocess-0.7.0     | 17 KB     | ##################################### | 100% 
mistune-0.8.4        | 57 KB     | ##################################### | 100% 
setuptools-52.0.0    | 724 KB    | ##################################### | 100% 
tzdata-2020f         | 113 KB    | ##################################### | 100% 
appnope-0.1.2        | 10 KB     | ##################################### | 100% 
argon2-cffi-20.1.0   | 44 KB     | ##################################### | 100% 
wheel-0.36.2         | 33 KB     | ##################################### | 100% 
openssl-1.1.1i       | 2.2 MB    | ##################################### | 100% 
nbconvert-6.0.7      | 492 KB    | ##################################### | 100% 
notebook-6.2.0       | 4.1 MB    | ##################################### | 100% 
backcall-0.2.0       | 13 KB     | ##################################### | 100% 
markupsafe-1.1.1     | 27 KB     | ##################################### | 100% 
jedi-0.17.2          | 921 KB    | ##################################### | 100% 
pandocfilters-1.4.3  | 14 KB     | ##################################### | 100% 
pyparsing-2.4.7      | 59 KB     | ##################################### | 100% 
six-1.15.0           | 27 KB     | ##################################### | 100% 
pickleshare-0.7.5    | 13 KB     | ##################################### | 100% 
widgetsnbextension-3 | 863 KB    | ##################################### | 100% 
traitlets-5.0.5      | 81 KB     | ##################################### | 100% 
readline-8.1         | 333 KB    | ##################################### | 100% 
python-dateutil-2.8. | 221 KB    | ##################################### | 100% 
prometheus_client-0. | 45 KB     | ##################################### | 100% 
pyrsistent-0.17.3    | 92 KB     | ##################################### | 100% 
Preparing transaction: done
Verifying transaction: | WARNING conda.core.path_actions:verify(962): Unable to create environments file. Path not writable.
  environment location: /Users/username/.conda/environments.txt

done
Executing transaction: | WARNING conda.core.envs_manager:register_env(50): Unable to register environment. Path not writable or missing.
  environment location: /Applications/anaconda3/envs/introtensorflow
  registry file: /Users/username/.conda/environments.txt
done

↓の部分ですね。

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

結局のところ、この.conda/environments.txtに書き込みができないと。
いろいろパッケージをインストールしてるような動きだけど、最後の最後で環境設定ファイルへの書き込みに失敗しているようなので、気持ち悪い。

ググってみるとstackoverflowで同様の事象を発見。

https://stackoverflow.com/questions/59619442/how-does-one-fix-the-issue-of-not-writable-paths-with-conda

どうやらこの.conda/environments.txtに対する書き込み権限がないことが原因っぽい。

ls -alで権限を確認してみる。(オプションのaを付けないと「.conda」ファイルのような隠れファイルが表示されない)

(base) MacBook-Pro:~ username$ ls -al
total 320

#~以下一部抜粋~

drwxr-xr-x    3 username  staff     96 Jan  4 21:23 .conda

※権限の見方はこちらのQiitaの記事がわかりやすいです。

ということで権限を変更できるchmodコマンド(Change Modeコマンド)を使っていく。

でも権限をどういうふうに変更すればよいのか分からず、とりあえずstackoverflowにあるように"775"に変更してみた。

(base) MacBook-Pro:~ username$ chmod 775 .conda
(base) MacBook-Pro:~ username$ ls -al
total 320

#~以下一部抜粋~

drwxrwxr-x    3 username  staff     96 Jan  4 21:23 .conda

「これでいけるはず!」と思い、新たに「introtensorflow2」という環境を作ってみる。

(base) MacBook-Pro:~ username$ conda create -n introtensorflow2
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Applications/anaconda3/envs/introtensorflow2



Proceed ([y]/n)? y

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

done
Executing transaction: - WARNING conda.core.envs_manager:register_env(50): Unable to register environment. Path not writable or missing.
  environment location: /Applications/anaconda3/envs/introtensorflow2
  registry file: /Users/username/.conda/environments.txt
done
#
# To activate this environment, use
#
#     $ conda activate introtensorflow2
#
# To deactivate an active environment, use
#
#     $ conda deactivate

また同じくエラー...
なんでやねん...

おっくソおっくソ

chmodで権限を書き込み可能にしたはずなのに、なぜ...

ターミナルを起動し直して、再度試してもダメでした。

あと考えられるとしたらenvironments.txtのファイルへの権限が変更できていない疑惑。

chmod 775 .condaで権限を変更したのはあくまでも".conda"フォルダ。

その中身に反映されていないのでは?

そんなことがあるのかと疑いつつも、stackoverflowでは質問者がファイル自体の権限を変更するということをしていたので試してみることに。

https://stackoverflow.com/questions/59619442/how-does-one-fix-the-issue-of-not-writable-paths-with-conda

実際のコマンドはこちら。

sudo chmod 775 /Users/username/.conda/environments.txt

sudoコマンドを使って、environments.txtの権限を直接"775"に変更するというもの。
(今思うと、sudoコマンドを使う必要があったのかは不明です。)

そのあともう一度仮想環境(introtensorflow4)を作成してみると成功しました。

(base) MacBook-Pro:~ username$ sudo chmod 775 .conda/environments.txt
Password:
(base) MacBook-Pro:~ username$ conda create -n introtensorflow4
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Applications/anaconda3/envs/introtensorflow4



Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate introtensorflow4
#
# To deactivate an active environment, use
#
#     $ conda deactivate

最初にエラーが起きていた「Verifying transaction:」のところでも、何も起きず処理が終了しました。

そしてjupyterのインストールでもエラーは起きませんでした。

(base) MacBook-Pro:~ username$ conda activate introtensorflow4
(introtensorflow4) MacBook-Pro:~ username$ conda install jupyter
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Applications/anaconda3/envs/introtensorflow4

  added / updated specs:
    - jupyter


The following NEW packages will be INSTALLED:

  appnope            pkgs/main/osx-64::appnope-0.1.2-py39hecd8cb5_1001
  argon2-cffi        pkgs/main/osx-64::argon2-cffi-20.1.0-py39h9ed2024_1
  async_generator    pkgs/main/noarch::async_generator-1.10-pyhd3eb1b0_0
  attrs              pkgs/main/noarch::attrs-20.3.0-pyhd3eb1b0_0
  backcall           pkgs/main/noarch::backcall-0.2.0-pyhd3eb1b0_0
  bleach             pkgs/main/noarch::bleach-3.2.3-pyhd3eb1b0_0
  ca-certificates    pkgs/main/osx-64::ca-certificates-2021.1.19-hecd8cb5_0
  certifi            pkgs/main/osx-64::certifi-2020.12.5-py39hecd8cb5_0
  cffi               pkgs/main/osx-64::cffi-1.14.4-py39h2125817_0
  decorator          pkgs/main/noarch::decorator-4.4.2-pyhd3eb1b0_0
  defusedxml         pkgs/main/noarch::defusedxml-0.6.0-py_0
  entrypoints        pkgs/main/osx-64::entrypoints-0.3-py39hecd8cb5_0
  icu                pkgs/main/osx-64::icu-58.2-h0a44026_3
  importlib-metadata pkgs/main/noarch::importlib-metadata-2.0.0-py_1
  importlib_metadata pkgs/main/noarch::importlib_metadata-2.0.0-1
  ipykernel          pkgs/main/osx-64::ipykernel-5.3.4-py39h01d92e1_0
  ipython            pkgs/main/osx-64::ipython-7.19.0-py39h01d92e1_1
  ipython_genutils   pkgs/main/noarch::ipython_genutils-0.2.0-pyhd3eb1b0_1
  ipywidgets         pkgs/main/noarch::ipywidgets-7.6.3-pyhd3eb1b0_1
  jedi               pkgs/main/osx-64::jedi-0.17.2-py39hecd8cb5_1
  jinja2             pkgs/main/noarch::jinja2-2.11.2-pyhd3eb1b0_0
  jpeg               pkgs/main/osx-64::jpeg-9b-he5867d9_2
  jsonschema         pkgs/main/noarch::jsonschema-3.2.0-py_2
  jupyter            pkgs/main/osx-64::jupyter-1.0.0-py39hecd8cb5_7
  jupyter_client     pkgs/main/noarch::jupyter_client-6.1.7-py_0
  jupyter_console    pkgs/main/noarch::jupyter_console-6.2.0-py_0
  jupyter_core       pkgs/main/osx-64::jupyter_core-4.7.0-py39hecd8cb5_0
  jupyterlab_pygmen~ pkgs/main/noarch::jupyterlab_pygments-0.1.2-py_0
  jupyterlab_widgets pkgs/main/noarch::jupyterlab_widgets-1.0.0-pyhd3eb1b0_1
  libcxx             pkgs/main/osx-64::libcxx-10.0.0-1
  libedit            pkgs/main/osx-64::libedit-3.1.20191231-h1de35cc_1
  libffi             pkgs/main/osx-64::libffi-3.3-hb1e8313_2
  libpng             pkgs/main/osx-64::libpng-1.6.37-ha441bb4_0
  libsodium          pkgs/main/osx-64::libsodium-1.0.18-h1de35cc_0
  markupsafe         pkgs/main/osx-64::markupsafe-1.1.1-py39h9ed2024_0
  mistune            pkgs/main/osx-64::mistune-0.8.4-py39h9ed2024_1000
  nbclient           pkgs/main/noarch::nbclient-0.5.1-py_0
  nbconvert          pkgs/main/osx-64::nbconvert-6.0.7-py39hecd8cb5_0
  nbformat           pkgs/main/noarch::nbformat-5.1.2-pyhd3eb1b0_1
  ncurses            pkgs/main/osx-64::ncurses-6.2-h0a44026_1
  nest-asyncio       pkgs/main/noarch::nest-asyncio-1.4.3-pyhd3eb1b0_0
  notebook           pkgs/main/osx-64::notebook-6.2.0-py39hecd8cb5_0
  openssl            pkgs/main/osx-64::openssl-1.1.1i-h9ed2024_0
  packaging          pkgs/main/noarch::packaging-20.9-pyhd3eb1b0_0
  pandoc             pkgs/main/osx-64::pandoc-2.11-h0dc7051_0
  pandocfilters      pkgs/main/osx-64::pandocfilters-1.4.3-py39hecd8cb5_1
  parso              pkgs/main/noarch::parso-0.7.0-py_0
  pexpect            pkgs/main/noarch::pexpect-4.8.0-pyhd3eb1b0_3
  pickleshare        pkgs/main/noarch::pickleshare-0.7.5-pyhd3eb1b0_1003
  pip                pkgs/main/osx-64::pip-20.3.3-py39hecd8cb5_0
  prometheus_client  pkgs/main/noarch::prometheus_client-0.9.0-pyhd3eb1b0_0
  prompt-toolkit     pkgs/main/noarch::prompt-toolkit-3.0.8-py_0
  prompt_toolkit     pkgs/main/noarch::prompt_toolkit-3.0.8-0
  ptyprocess         pkgs/main/noarch::ptyprocess-0.7.0-pyhd3eb1b0_2
  pycparser          pkgs/main/noarch::pycparser-2.20-py_2
  pygments           pkgs/main/noarch::pygments-2.7.4-pyhd3eb1b0_0
  pyparsing          pkgs/main/noarch::pyparsing-2.4.7-pyhd3eb1b0_0
  pyqt               pkgs/main/osx-64::pyqt-5.9.2-py39h23ab428_6
  pyrsistent         pkgs/main/osx-64::pyrsistent-0.17.3-py39h9ed2024_0
  python             pkgs/main/osx-64::python-3.9.1-h88f2d9e_2
  python-dateutil    pkgs/main/noarch::python-dateutil-2.8.1-pyhd3eb1b0_0
  pyzmq              pkgs/main/osx-64::pyzmq-20.0.0-py39h23ab428_1
  qt                 pkgs/main/osx-64::qt-5.9.7-h468cd18_1
  qtconsole          pkgs/main/noarch::qtconsole-4.7.7-py_0
  qtpy               pkgs/main/noarch::qtpy-1.9.0-py_0
  readline           pkgs/main/osx-64::readline-8.1-h9ed2024_0
  send2trash         pkgs/main/noarch::send2trash-1.5.0-pyhd3eb1b0_1
  setuptools         pkgs/main/osx-64::setuptools-52.0.0-py39hecd8cb5_0
  sip                pkgs/main/osx-64::sip-4.19.13-py39h23ab428_0
  six                pkgs/main/osx-64::six-1.15.0-py39hecd8cb5_0
  sqlite             pkgs/main/osx-64::sqlite-3.33.0-hffcf06c_0
  terminado          pkgs/main/osx-64::terminado-0.9.2-py39hecd8cb5_0
  testpath           pkgs/main/noarch::testpath-0.4.4-pyhd3eb1b0_0
  tk                 pkgs/main/osx-64::tk-8.6.10-hb0a8c7a_0
  tornado            pkgs/main/osx-64::tornado-6.1-py39h9ed2024_0
  traitlets          pkgs/main/noarch::traitlets-5.0.5-pyhd3eb1b0_0
  tzdata             pkgs/main/noarch::tzdata-2020f-h52ac0ba_0
  wcwidth            pkgs/main/noarch::wcwidth-0.2.5-py_0
  webencodings       pkgs/main/osx-64::webencodings-0.5.1-py39hecd8cb5_1
  wheel              pkgs/main/noarch::wheel-0.36.2-pyhd3eb1b0_0
  widgetsnbextension pkgs/main/osx-64::widgetsnbextension-3.5.1-py39hecd8cb5_0
  xz                 pkgs/main/osx-64::xz-5.2.5-h1de35cc_0
  zeromq             pkgs/main/osx-64::zeromq-4.3.3-hb1e8313_3
  zipp               pkgs/main/noarch::zipp-3.4.0-pyhd3eb1b0_0
  zlib               pkgs/main/osx-64::zlib-1.2.11-h1de35cc_3


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

無事解決です。

なぜ最初のchmod 775 .condaで権限変更できなかったのか理由は分かりません。

このスクラップは2021/01/31にクローズされました