安装wechat_sender 出错: Permission denied: '/Library/Python/2.7/site-packages/singledispatch.py' pip ins

在尝试使用pip安装wechat_sender时遇到错误:Permission denied: '/Library/Python/2.7/site-packages/singledispatch.py'。解决方案包括使用sudo权限安装或修改目录权限。可以运行命令:sudo chmod +a 'user:YOUR_USER_NAME allow add_subdirectory,add_file,delete_child,directory_inherit' /Library/Python/2.7/site-packages,并将YOUR_USER_NAME替换为实际用户名。" 114096163,10539170,Java实现三个数找出最大值和最小值,"['Java基础', '数据输入', '算法', '编程实践']

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装wechat_sender 出错:

Permission denied: '/Library/Python/2.7/site-packages/singledispatch.py'

pip install wechat_sender


查百度得到: 

https://stackoverflow.com/questions/24504231/whats-causing-this-error-when-i-try-and-install-virtualenv-ioerror-errno-13



Your account does not have write access to this directory?.

  1. If the installation directory is a system-owned directory, you may need to sign in as the administrator or "root" account.
    sudo pip install virtualenv
  2. 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 PYTHON_PATH environment variable.
  3. easier way: change that dir permission:
    chmod +a 'user:YOUR_USER_NAME allow add_subdirectory,add_file,delete_child,directory_inherit' /Library/Python/2.7/site-packages

解决方法:sudo chmod +a 'user:YOUR_USER_NAME allow add_subdirectory,add_file,delete_child,directory_inherit' /Library/Python/2.7/site-packages

YOUR_USER_NAME 改为自己的用户名,

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值