当前位置:   article > 正文

python创建目录失败_执行Python setup.py安装时出错:错误:无法在安装目录中创建或删除文件,pythonsetuppyinstall,时报,errorcantcreateorremo...

error: can't create or remove files in install directory the following error

在研究setuptools时,执行python setup.py install,遇到不能创建文件夹的权限报错,完整的错误日志如下:

~ python setup.py install

running install

error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the

installation directory:

[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-19811.write-test'

The installation directory you specified (via --install-dir, --prefix, or

the distutils default setting) was:

/Library/Python/2.7/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 installat

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小桥流水78/article/detail/1014854
推荐阅读
相关标签
  

闽ICP备14008679号