libpython shared library cannot be found by python3-config on Mac
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 58/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- python
- 领域
- build-system
调研方向
首先使用 python3-config 重现所报告的 macOS conda 行为,并检查生成的 config-3.12-darwin 目录及其链接器标志。将结果与 Homebrew 示例进行比较;当所报告的库路径或等效的链接信息可用,从而能够链接 conda Python 共享库时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
python3-config --ldflag reports -L/opt/miniconda3/lib/python3.12/config-3.12-darwin -ldl -framework CoreFoundation on Mac. However, libpython is not included in -L, so linking to the conda python shared library is impossible.
For reference, the brew installed python creates a symlink to libpython in the library returned by python3-config.
$ python3.13-config --ldflags
-L/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/lib/python3.13/config-3.13-darwin -ldl -framework CoreFoundation
$ ls -lhg /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/lib/python3.13/config-3.13-darwin
total 552
-rw-r--r--@ 1 admin 3.5K Feb 4 2025 config.c
-rw-r--r--@ 1 admin 1.7K Feb 4 2025 config.c.in
-rwxr-xr-x@ 1 admin 15K Feb 4 2025 install-sh
lrwxr-xr-x@ 1 admin 15B Feb 4 2025 libpython3.13.a -> ../../../Python
lrwxr-xr-x@ 1 admin 15B Feb 4 2025 libpython3.13.dylib -> ../../../Python
-rw-r--r--@ 1 admin 201K Feb 17 2025 Makefile
-rwxr-xr-x@ 1 admin 8.8K Feb 4 2025 makesetup
-rwxr-xr-x@ 1 admin 2.1K Feb 17 2025 python-config.py
-rw-r--r--@ 1 admin 3.8K Feb 4 2025 python.o
-rw-r--r--@ 1 admin 11K Feb 4 2025 Setup
-rw-r--r--@ 1 admin 954B Feb 4 2025 Setup.bootstrap
-rw-r--r--@ 1 admin 41B Feb 4 2025 Setup.local
-rw-r--r--@ 1 admin 6.6K Feb 4 2025 Setup.stdlib
Conda Info
active environment : base
active env location : /opt/miniconda3
shell level : 1
user config file : /Users/batty/.condarc
populated config files : /opt/miniconda3/.condarc
/Users/batty/.condarc
conda version : 24.9.2
conda-build version : not installed
python version : 3.12.7.final.0
solver : classic
virtual packages : __archspec=1=m1
__conda=24.9.2=0
__osx=15.7.7=0
__unix=0=0
base environment : /opt/miniconda3 (writable)
conda av data dir : /opt/miniconda3/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/osx-arm64
https://conda.anaconda.org/conda-forge/noarch
https://repo.anaconda.com/pkgs/main/osx-arm64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-arm64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /opt/miniconda3/pkgs
/Users/batty/.conda/pkgs
envs directories : /opt/miniconda3/envs
/Users/batty/.conda/envs
platform : osx-arm64
user-agent : conda/24.9.2 requests/2.32.3 CPython/3.12.7 Darwin/24.6.0 OSX/15.7.7 aau/0.4.4 c/. s/. e/.
UID:GID : 501:20
netrc file : None
offline mode : False
Note: reposting https://github.com/conda/conda/issues/16177#issuecomment-4649074170
- 主要语言
- Shell
- 星标
- 47
- 派生
- 112
- 平均合并
- 22 小时 18 分钟
- 30 天内合并 PR
- 14
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
conda-forge/python-feedstock 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
conda-forge/python-feedstock#934 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 48/100
conda-forge/python-feedstock#929 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
conda-forge/python-feedstock#903 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
conda-forge/python-feedstock#880 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 38/100
conda-forge/python-feedstock#867 · 4 条评论 ·
维护者通常 1 天内回复
查看 conda-forge/python-feedstock 的全部 Issue
相似的 Issue
-
package-update
难度 2/5 1-3 小时 新手友好度 68/100
oSoWoSo/vOid_Community_repOsitory#203 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug] v-quick-install-app install crashes with ValueError if no supported PHP version is installed未关闭
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
chore
难度 2/5 1-3 小时 新手友好度 84/100
alunduil/alunduil-chezmoi#809 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
type: bug
难度 2/5 1-3 小时 新手友好度 67/100
catppuccin/kde#152 ·