Gentoo:无法将python\u目标\u python 3\u 7添加到pip中
我无法将python\u目标\u python 3\u 7添加到我的pip中 我已将其添加到/etc/portage/package.use/dev-python中Gentoo:无法将python\u目标\u python 3\u 7添加到pip中,python,python-3.x,pip,target,gentoo,Python,Python 3.x,Pip,Target,Gentoo,我无法将python\u目标\u python 3\u 7添加到我的pip中 我已将其添加到/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/profile/use.stable.mask添加了以下内容 cat /e
cat /etc/portage/package.use/dev-python
dev-python/pip python_targets_python3_7 PYTHON_TARGETS: python3_7
根据这一点,我还向/etc/portage/profile/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.
据介绍,pip与python3.7兼容
非常感谢您的帮助。答案分为两部分 该问题在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
要删除此限制,您必须使用位于的解决方案。我已经为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-python
这应该转到unix.stackexchange.com站点,因为问题和答案都与编程无关。与使用、配置或维护linux或类似unix的系统相关的问题应该在那里提出。问题中引用的链接也表明了这一点。