Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/281.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gentoo:无法将python\u目标\u python 3\u 7添加到pip中_Python_Python 3.x_Pip_Target_Gentoo - Fatal编程技术网

Gentoo:无法将python\u目标\u python 3\u 7添加到pip中

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

我无法将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 /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的系统相关的问题应该在那里提出。问题中引用的链接也表明了这一点。