我正试图在python上安装一个包含以下代码行的包:
git clone https://github.com/dartoon/decomprofile
cd decomprofile
python setup.py develop
在返回错误消息的最后一步之前,它一直运行良好:
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-53720.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 installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://setuptools.readthedocs.io/en/latest/easy_install.html
Please make the appropriate changes for your system and try again.
我是计算机管理员,所以我不知道为什么我没有更改文件的权限。我已经确保我也有完整的磁盘访问权限。我试过这个命令
sudo easy_install
但这也不起作用。我使用Mac OS Catalina在终端应用程序中工作。我最近更新了anaconda3并使用了python3.8,所以我不确定为什么目录上写着2.7--我可以删除这个目录吗
默认情况下,macOS预装了python2.7。Catalina还预装了python3.7。尝试使用
python3
命令而不是python
您不能删除Python2.7,因为它是系统依赖项
相关问题 更多 >
编程相关推荐