简体   繁体   中英

Can Python scripts created with 64bit Python be run on same version but 32 bit Python?

(And vice versa)

Or are there incompatibilities ?

PS: I will be using python 3.5.3 on 2 machines, but one on 64 bit and one on 32 bit. I will change writing/running scripts between the 2 machines often.

Python is an interpreted language, not a compiled one. That basically means that if you're referring to pure Python code, that is, code that does not rely on any native compile libraries, the answer is yes.

If not, then I guess it depends on a bunch of things.

Anything really created with 64bit Python will probably not run under a 32bit version (for example, .pyc byte code files). Plain text scripts (.py files) created with any text editor is however compatible with both 32 and 64 bit Python interpreters.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM