2

I have IDA Pro 7.4 that use with Python 3.7 and I have some IDA-plugin that works only with Python 2.7.

Is there any way to run that Python 2.7 based plugin?

3
  • Have you tried converting it using 2to3? Commented Apr 2, 2020 at 1:23
  • @multithr3at3d can you please what did you mean? Commented Apr 2, 2020 at 16:53
  • Python has a program in its standard library to convert Python 2 code to Python 3 docs.python.org/3.8/library/2to3.html Commented Apr 2, 2020 at 22:26

1 Answer 1

1

You can't use Python 3 and Python 2 in IDA simultaneously, but you could switch between them by following instructions in README_python3.txt until IDA 8.0, which dropped Python 2 support.

3
  • github.com/idapython/src/blob/master/README_python3.txt Commented Sep 25, 2020 at 14:35
  • @igor Are you sure that this will work? Because when i run idapythonswitch, it doesn't detect my python2, and that readme says its only for python3.. and the force path requires a python3.dll which that or python2.dll are not present in python2. It gives this error "Cannot determine python library version for "C:\Python27": No "python3.dll" " Commented Mar 29, 2023 at 16:48
  • @OneAndOnly Python 2 support has been removed in IDA 8.0. In theory, you can try building an old version of IDAPython with Python 2 support but I don't know if it will work with 8.x. Commented Mar 30, 2023 at 10:31

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.