Permissions error during pip install on MacOS/Homebrew Python3
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- python
- 领域
- build-system
调研方向
首先检查 setup.py 和 MANIFEST.in,然后在 macOS 上复现 Homebrew Python 3 的 pip3 安装过程。当软件包安装不再尝试将 README.rst、CHANGELOG.rst 或 LICENSE 复制到 /usr/local,并且在没有权限错误的情况下完成时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Hi,
I ran into a permissions error during pip3 install as your setup.py seems to want to copy data files to /usr/local on my machine, i.e.
$ pip3 install base64io
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting base64io
Using cached base64io-1.0.3-py2.py3-none-any.whl (17 kB)
Installing collected packages: base64io
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/local/CHANGELOG.rst'
Consider using the `--user` option or check the permissions.
As it happens, the installation does still succeed, despite the error message indicating otherwise.
I realise I can simply perform a --user install and work around this issue, but I don't think that should be necessary. I'm using Homebrew installed Python 3.9.5 on MacOS, both pip3 and python3 are in /usr/local/bin.
I think this can be solved by replacing
data_files=["README.rst", "CHANGELOG.rst", "LICENSE"],
with
include_package_data=True,
in setup.py as the files are already listed for inclusion in MANIFEST.in.
- 主要语言
- Python
- 星标
- 42
- 派生
- 30
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aws/base64io-python 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 45/100
aws/base64io-python#40 · 1 个 reaction ·
查看 aws/base64io-python 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 88/100
use-agent-os/agent-os#3314 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
BasedHardware/omi#15662 · 1 条评论 ·
-
documentation help wanted
难度 2/5 1-3 小时 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 62/100
AiursoftWeb/AnduinOS-2#19 ·