当尝试使用从 Conda 更新 Cython 时,conda install -c anaconda cython=0.24
出现以下错误:
Error: Missing write permissions in: /home/user/anaconda3
#
# You don't appear to have the necessary permissions to install packages
# into the install area '/home/user/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=/home/user/anaconda3
当我尝试时sudo conda install -c anaconda cython=0.24
出现sudo: conda: command not found
错误。
答案1
我刚刚将用户从 root 更改为 /home/user/anaconda3 的用户,一切正常。
此命令不起作用,sudo conda install -c anaconda cython=0.24
因为
sudo conda
不是有效命令。应确保安装 anaconda 时具有正确的用户和权限。