我无法将python_targets_python3_7添加到我的pip emerge中。
我已经将它添加到/etc/portage/package.use/dev-python中
cat /etc/portage/package.use/dev-python
dev-python/pip python_targets_python3_7 PYTHON_TARGETS: python3_7根据这个配置文件,我还在/etc/portage/ https://unix.stackexchange.com/questions/320313/python3-5-in-python-targets-not-working-in-gentoo /use.stable.mask中添加了以下内容
cat /etc/portage/use.stable.mask
-python_targets_pyton3_7
-python_single_target_python3_7不幸的是,这不会导致在emerge中使用标志
emerge -av dev-python/pip
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] dev-python/pip-19.3.1-r1::gentoo USE="-test -vanilla" PYTHON_TARGETS="python2_7 python3_6 (-pypy3) (-python3_7)" 0 KiB
Total: 1 package (1 new), Size of downloads: 0 KiB
Would you like to merge these packages? [Yes/No] N
Quitting.根据https://packages.gentoo.org/useflags/python_targets_python3_7的说法,pip与python3.7兼容。
任何帮助都是非常感谢的。
发布于 2020-01-20 15:04:24
答案是两个部分。
在emerge手册页中,该问题被描述为从顶部开始的第四个符号:
Symbol Location Meaning
- prefix not enabled (either disabled or removed)
* suffix transition to or from the enabled state
% suffix newly added or removed
() circumfix forced, masked, or removed
{} circumfix state is bound to FEATURES settings要取消此限制,您必须使用https://forums.gentoo.org/viewtopic-t-1068102.html上提供的解决方案。我已经为python3_7更新了下面的命令。
echo "dev-python/pip -python_targets_python3_7" >> /etc/portage/profile/package.use.mask然后将python目标添加到构建中:
echo "dev-python/pip python_targets_python3_7" >> /etc/portage/package.use/dev-pythonhttps://stackoverflow.com/questions/59807787
复制相似问题