I would like to use regular python packages in my IDAPython scripts, but I can't figure out how to install them into IDA's Python environment. I don't even know where this python environment is, or even where IDA's python.exe is, because sys.executable
just prints the ida.exe
file path. I can make it work with some packages, like yara and FIDL by installing them with pip, and copying the module's folder from my own python environment's site-packages
folder over to <IDA Install Path>\python\3\
, but this method doesn't work with more complex modules that have dependencies to other modules, or native DLLs (for example pywin32).
Is there an easier way to install python packages into IDA so i can just simply import them into my IDAPython scripts?