python / python/cpython

Possible missing symlink to `lib64` in user path schema on Linux Fedora 43, Python 3.14.2

未关闭
#143,989 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

3.14 3.15 topic-installation type-bug
主要语言
Python
星标
77.2k
派生
35.9k
PR 合并指标
PR 指标待抓取

描述

Bug report

Bug description:

I'm not sure if this is distribution specific problem or something is broken in the core, so I'm filing it here first. I'm also not sure if it's CPython per se or needs to go into PyPA (pip etc).

Python 3.14.2 (main, Dec 5 2025, 00:00:00) [GCC 15.2.1 20251111 (Red Hat 15.2.1-4)] on linux

>>> pprint.pprint(sysconfig.get_paths("posix_user"))
{'data': '/home/arcivanov/.local',
 'include': '/home/arcivanov/.local/include/python3.14',
 'platlib': '/home/arcivanov/.local/lib/python3.14/site-packages',
 'platstdlib': '/home/arcivanov/.local/lib64/python3.14',
 'purelib': '/home/arcivanov/.local/lib/python3.14/site-packages',
 'scripts': '/home/arcivanov/.local/bin',
 'stdlib': '/home/arcivanov/.local/lib64/python3.14'}
>>> pprint.pprint(sysconfig.get_paths("venv"))
{'data': '/usr',
 'include': '/usr/include/python3.14',
 'platinclude': '/usr/include/python3.14',
 'platlib': '/usr/lib64/python3.14/site-packages',
 'platstdlib': '/usr/lib64/python3.14',
 'purelib': '/usr/lib/python3.14/site-packages',
 'scripts': '/usr/bin',
 'stdlib': '/usr/lib64/python3.14'}
>>> 

Firstly, in the posix_user the platlib goes into lib, whereas in venv everything that isn't pure is going into lib64.

Secondly, in the venv, this doesn't really matter due to there being a symlink from lib64 to lib. However, in the posix_user the lib64 is simply missing from /home/arcivanov/.local/ while being referenced in posix_user schema as something that should exist.

Venv:

drwxr-xr-x 1 arcivanov arcivanov 374 Dec  9 09:34 bin
-rw-r--r-- 1 arcivanov arcivanov  69 Dec  9 09:34 .gitignore
drwxr-xr-x 1 arcivanov arcivanov   0 Dec  9 09:34 include
drwxr-xr-x 1 arcivanov arcivanov  22 Dec  9 09:34 lib
lrwxrwxrwx 1 arcivanov arcivanov   3 Dec  9 09:34 lib64 -> lib
-rw-r--r-- 1 arcivanov arcivanov 305 Dec  9 09:34 pyvenv.cfg
CPython versions tested on:

3.14

Operating systems tested on:

Linux

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,在 Linux Fedora 43 和 Python 3.14.2 上重现报告的 sysconfig.get_paths("posix_user") 和 sysconfig.get_paths("venv") 结果,然后比较 user 和 venv 的路径模式及其对 lib/lib64 的行为。完成的标准是确定 posix_user 应创建还是引用 lib64,并在 repository 确认了预期结果的情况下,通过文档记录该行为或使用回归覆盖对其进行修正。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
operating-systems
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。