linux-python3_5在PYTHON_TARGETS中无法在Gentoo中运行?
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了linux-python3_5在PYTHON_TARGETS中无法在Gentoo中运行?,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含3504字,纯文字阅读大概需要6分钟。
内容图文
![linux-python3_5在PYTHON_TARGETS中无法在Gentoo中运行?](/upload/InfoBanner/zyjiaocheng/958/360d70d247d84899b3df41d3a38c94f9.jpg)
我在我的/etc/portage/make.conf中添加了PYTHON_TARGETS =“python2_7 python3_5 python3_4”.
尝试安装任何支持python目标的程序时,会发生以下情况:
sudo emerge --ask dev-python/google-api-python-client
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] dev-python/httplib2-0.9.1 PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3)"
[ebuild N ] dev-python/pyasn1-modules-0.0.5-r1 PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3)"
[ebuild N ] dev-python/linecache2-1.0.0 USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) (-python3_5)"
[ebuild N ] dev-python/simplejson-3.8.1 PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) (-python3_5)"
[ebuild N ] dev-python/uritemplate-0.6 PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) (-python3_5)"
[ebuild N ] dev-python/traceback2-1.4.0 PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) (-python3_5)"
[ebuild N ] dev-python/rsa-3.2.3-r1 USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-python3_5)"
[ebuild N ] dev-python/oauth2client-2.0.1 USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-python3_5)"
[ebuild N ] dev-python/google-api-python-client-1.5.0 USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy)"
Would you like to merge these packages? [Yes/No]
如您所见,python3_5由于某种原因被禁用,我不知道如何解决它.我还尝试将python_targets_python3_5添加到我的USE标志中,但它没有结果.
$eselect python list
Available Python interpreters:
[1] python2.7
[2] python3.4
[3] python3.5 *
我应该怎么做才能启用python3.5标志支持?
解决方法:
我终于找到了解决这个问题的方法.
您需要编辑/usr/portage/profiles/base/use.stable.mask并注释掉以下行:
python_targets_python3_5
python_single_target_python3_5
现在我们开始:
sudo emerge --ask dev-python/google-api-python-client
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] dev-python/six-1.10.0 PYTHON_TARGETS="python3_5*"
[ebuild R ] dev-python/setuptools-20.6.7 PYTHON_TARGETS="python3_5*"
[ebuild R ] dev-python/certifi-2015.11.20 PYTHON_TARGETS="python3_5*"
[ebuild U ~] dev-python/pyasn1-0.1.9 [0.1.8] PYTHON_TARGETS="python3_5%*"
[ebuild N ~] dev-python/httplib2-0.9.2-r1 PYTHON_TARGETS="python2_7 python3_4 python3_5 -pypy -pypy3"
[ebuild R ] dev-python/pbr-1.10.0 PYTHON_TARGETS="python3_5*"
[ebuild N ] dev-python/simplejson-3.8.1 PYTHON_TARGETS="python2_7 python3_4 python3_5 (-pypy) (-pypy3)"
[ebuild N ] dev-python/uritemplate-0.6 PYTHON_TARGETS="python2_7 python3_4 python3_5 (-pypy) (-pypy3)"
[ebuild N ~] dev-python/pyasn1-modules-0.0.8 PYTHON_TARGETS="python2_7 python3_4 python3_5 -pypy -pypy3"
[ebuild N ] dev-python/linecache2-1.0.0 USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 python3_5 (-pypy) (-pypy3)"
[ebuild N ] dev-python/traceback2-1.4.0 PYTHON_TARGETS="python2_7 python3_4 python3_5 (-pypy) (-pypy3)"
[ebuild N ] dev-python/rsa-3.2.3-r1 USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 python3_5 (-pypy)"
[ebuild N ] dev-python/oauth2client-2.0.1 USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 python3_5 (-pypy)"
[ebuild N ] dev-python/google-api-python-client-1.5.0 USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy)"
更新:此更改将被系统更新覆盖,因此您需要使用以下行更新/etc/portage/profile/use.stable.mask:
-python_targets_python3_5
-python_single_target_python3_5
感谢Reddit的jansegre.
内容总结
以上是互联网集市为您收集整理的linux-python3_5在PYTHON_TARGETS中无法在Gentoo中运行?全部内容,希望文章能够帮你解决linux-python3_5在PYTHON_TARGETS中无法在Gentoo中运行?所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。