美文网首页
error: can't create or remove fi

error: can't create or remove fi

作者: Yayamia | 来源:发表于2022-11-07 21:21 被阅读0次

从Github下载源包tar.gz后解压
想要通过python setup.py install安装

报错:

 [Errno 13] Permission denied: '/usr/local/python3/lib/python3.9/site-packages/test-easy-install-19853.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/local/python3/lib/python3.9/site-packages/

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

原因:账号没有root权限

最简单的方法:

python setup.py install --user

即在个人目录下安装

相关文章

网友评论

      本文标题:error: can't create or remove fi

      本文链接:https://www.haomeiwen.com/subject/kfeitdtx.html