0

Similar to this question:

Passing data between Python scripts, while separately running

But I have two different versions of Python running (2.x and 3.x). We use 2.x in my shop, but are running 3.x on a virtual machine for machine learning libraries that 2.x doesn't support.

Will this solution work for 2.x and 3.x, or is there another method?

mk8efz
  • 1,374
  • 4
  • 20
  • 36
  • Try it and see if it works? – Bahrom Nov 02 '17 at 19:28
  • Oh I meant try with a trivial script? Maybe you could use [pickle](https://docs.python.org/3/library/pickle.html)? https://stackoverflow.com/questions/1849523/is-pickle-file-of-python-cross-platform – Bahrom Nov 02 '17 at 19:31
  • what is the relation between the scripts? does one call another? to they need interactive communication, or one way? – Ophir Yoktan Nov 02 '17 at 20:08

1 Answers1

0

Well the 2 versions of python are different. At some time it will remain only python 3. Python 3 is upgraded version of python 2 but incompatible because it has new methods and functions calls. Here is an more detailed explanation by Python development team Porting python code.

Here I even find a book to help you better Python porting book