I've the error message like this when trying to install the opencv
on my Mac
$ conda install opencv
Do you accept the Terms of Service (ToS) for https://repo.anaconda.com/pkgs/main? [(a)ccept/(r)eject/(v)iew]: a
CondaToSPermissionError: Unable to read/write path (/Users/<USER>/.conda/tos/3c9d068aa053e2a1c4313fe3391b7a8ee57c4fbd09c4e8aeae49ef333a740150/1752577200.0.json) for https://repo.anaconda.com/pkgs/main. Please check permissions.
To fix this, I've listed the home's folder permissions where the conda lives:
and use the chmod
to fix the permission:
# ⚠️ note replace <USER> with your username, e.g., tim, john.
sudo chown -R <USER>:staff /Users/<USER>/.conda
Then try to install the opencv
once again:
$ conda install opencv
.
.
.
The following packages will be DOWNGRADED:
libabseil 20250127.0-cxx17_h313beb8_0 --> 20240116.2-cxx17_h313beb8_0
libgrpc 1.71.0-h62f6fdd_0 --> 1.62.2-h62f6fdd_0
libprotobuf 5.29.3-h9f9f828_0 --> 4.25.3-h514c7bf_0
libtiff 4.7.0-h91aec0a_0 --> 4.5.1-hc9ead59_1
orc 2.1.1-h55d209b_0 --> 2.0.1-h937ddfc_0
protobuf 5.29.3-py313h514c7bf_0 --> 4.25.3-py313h1a06a43_1
re2 2024.07.02-h48ca7d4_0 --> 2022.04.01-hc377ac9_0
The following packages will be REVISED:
arrow-cpp 19.0.0-h0b7d223_2 --> 19.0.0-h0b7d223_1
lcms2 2.16-he26ebf3_1 --> 2.16-he93ba84_0
mysql 8.4.0-h065ec36_2 --> 8.4.0-h3a6587f_1
openjpeg 2.5.2-hba36e21_1 --> 2.5.2-h54b8e55_0
pillow 11.1.0-py313h41ba818_1 --> 11.1.0-py313h84e58ab_0
Proceed ([y]/n)? y
Downloading and Extracting Packages:
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
The issue was fixed.
Top comments (0)