conda) 가상환경 생성오류 CondaError: Unable to create prefix directory

❍ 가상환경 생성시 CondaError: Unable to create prefix directory 오류

~ /opt/homebrew/anaconda3/condabin/conda create -p /Users/lucas/.conda/envs/python -y python=3.10 
~
~
~
Preparing transaction: ...working... failed


CondaError: Unable to create prefix directory '/Users/lucas/.conda/envs/python'.
Check that you have sufficient permissions.

해결 (solve)

 - 가상환경 생성

~ sudo chown -R 501:20 /Users/<username>/.conda/

~ /opt/homebrew/anaconda3/condabin/conda create -p /Users/lucas/.conda/envs/python
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/lucas/.conda/envs/python



Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate /Users/lucas/.conda/envs/python
#
# To deactivate an active environment, use
#
#     $ conda deactivate

 

Comment