在python3中编译SCons [英] compile SCons in python3

查看:88
本文介绍了在python3中编译SCons的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Python 新手,正在学习使用 Python 3 进行编码(我计划将其保留为我的默认版本).另一个软件,我打算用需要Python 2进行编译(用SCons编译).有没有办法解决这个问题,即在仍然使用 SCons 编译的同时保留 Python 3.virtualenv 能做到这一点吗?

I am newbie at Python and am learning to code with Python 3 (which I plan to keep as my default version). Another software, I intend to use needs Python 2 for compiling (compilation with SCons). Is there a way around this i.e. keeping Python 3 while still compiling with SCons. Can virtualenv do this?

推荐答案

scons 是 python2 的事实并不重要.您自己的项目可以是 python3、python4 或任何您想要的项目.Scons 不在乎,你只需要记住当你编辑你的 SConstruct 文件时你是在 python2 领域

the fact that scons is python2 doesn't matter. Your own project can be python3, python4, or anything your heart desires. Scons doesn't care, you just need to remember that you're in python2 land when you're editing your SConstruct files

这篇关于在python3中编译SCons的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆