Using a virtualenv for IDAPython

P.S. to figure out what library path to pass to idapyswitch, you can use GitHub - ktbarrett/find_libpython: Finds the libpython associated with the current Python environment, wherever it may be hiding. (some adjustment for macOS may be required).