diff --git a/remoto/backends/__init__.py b/remoto/backends/__init__.py
index 6de9d0e..ff20b79 100644
--- a/remoto/backends/__init__.py
+++ b/remoto/backends/__init__.py
@@ -114,7 +114,7 @@ class BaseConnection(object):
     def exit(self):
         self.group.terminate(timeout=1.0)
 
-    def import_module(self, module):
+    def import_module(self, module, python_executable=None):
         """
         Allows remote execution of a local module. Depending on the
         ``remote_import_system`` attribute it may use execnet's implementation
@@ -125,7 +125,8 @@ class BaseConnection(object):
         """
         if self.remote_import_system is not None:
             if self.remote_import_system == 'json':
-                self.remote_module = JsonModuleExecute(self, module, self.logger)
+                self.remote_module = JsonModuleExecute(self, module, self.logger,
+                                                       python_executable=python_executable)
             else:
                 self.remote_module = LegacyModuleExecute(self.gateway, module, self.logger)
         else:
@@ -217,12 +218,12 @@ class JsonModuleExecute(object):
     as well and raised accordingly.
     """
 
-    def __init__(self, conn, module, logger=None):
+    def __init__(self, conn, module, logger=None, python_executable=None):
         self.conn = conn
         self.module = module
         self._module_source = inspect.getsource(module)
         self.logger = logger
-        self.python_executable = None
+        self.python_executable = python_executable
 
     def __getattr__(self, name):
         if not hasattr(self.module, name):

Allow remote python interpreter path
Currently, `get_python_executable` is used to determine the path for python interpreter on remote nodes. This method runs `which` command to get `python3`, `python2` or `python` command path on the remote system. 

Different systems can have different python environment setups, especially for projects using virtualenvs. `JsonModuleExecute` can allow passing an option to run python modules using provided python interpreter path on remote nodes. 

Something like: 
```python
    def __init__(self, conn, module, logger=None, remote_python=None):
        ...
        self.python_executable = remote_python
        ...
```
diff --git a/remoto/tests/backends/test_backends.py b/remoto/tests/backends/test_backends.py
index 7a8d138..0e83a07 100644
--- a/remoto/tests/backends/test_backends.py
+++ b/remoto/tests/backends/test_backends.py
@@ -71,6 +71,24 @@ class TestJsonModuleExecute(object):
             pass
         assert remote_fake_module.python_executable is not None
 
+    def test_python_executable(self):
+        python_executable = sys.executable
+        conn = local.LocalConnection()
+        conn.remote_import_system = 'json'
+        remote_fake_module = conn.import_module(fake_module,
+                                                python_executable=python_executable)
+        assert remote_fake_module.remote_interpreter() == python_executable
+
+    def test_wrong_python_executable(self):
+        python_executable = '/path/to/python'
+        conn = local.LocalConnection()
+        conn.remote_import_system = 'json'
+        remote_fake_module = conn.import_module(fake_module,
+                                                python_executable=python_executable)
+        with pytest.raises(Exception) as error:
+            remote_fake_module.remote_interpreter()
+        assert 'Failed to execute command: {}'.format(python_executable) in str(error.value)
+
 
 class TestNeedsSsh(object):
 
diff --git a/remoto/tests/fake_module.py b/remoto/tests/fake_module.py
index b4194fe..1803fe3 100644
--- a/remoto/tests/fake_module.py
+++ b/remoto/tests/fake_module.py
@@ -23,3 +23,7 @@ def noop():
 
 def passes():
     pass
+
+
+def remote_interpreter():
+    return sys.executable

pip install -e .
parse_log_pytest
pytest
pytest mock
apt-get update apt-get install -y gcc
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
execnet==1.9.0
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
mock==5.2.0
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
-e git+https://github.com/alfredodeza/remoto.git@b6ed62932a5b2164d43a3d644f91e065285a1ef8#egg=remoto
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: remoto
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib-metadata=4.8.1=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - execnet==1.9.0
      - mock==5.2.0
prefix: /opt/conda/envs/remoto

remoto/tests/backends/test_backends.py::TestJsonModuleExecute::test_python_executable remoto/tests/backends/test_backends.py::TestJsonModuleExecute::test_wrong_python_executable
remoto/tests/backends/test_backends.py::TestJsonModuleExecute::test_execute_returns_casted_boolean remoto/tests/backends/test_backends.py::TestJsonModuleExecute::test_execute_can_raise_remote_exceptions remoto/tests/backends/test_backends.py::TestJsonModuleExecute::test_execute_can_raise_unexpected_remote_exceptions remoto/tests/backends/test_backends.py::TestJsonModuleExecute::test_execute_noop remoto/tests/backends/test_backends.py::TestJsonModuleExecute::test_execute_passes_is_none remoto/tests/backends/test_backends.py::TestJsonModuleExecute::test_execute_wrong_interpreter remoto/tests/backends/test_backends.py::TestJsonModuleExecute::test_fallback_interpreter remoto/tests/backends/test_backends.py::TestNeedsSsh::test_short_hostname_matches remoto/tests/backends/test_backends.py::TestNeedsSsh::test_long_hostname_matches remoto/tests/backends/test_backends.py::TestNeedsSsh::test_hostname_does_not_match remoto/tests/backends/test_backends.py::TestNeedsSsh::test_fqdn_hostname_matches_short_hostname remoto/tests/backends/test_backends.py::TestNeedsSsh::test_local_hostname[localhost] remoto/tests/backends/test_backends.py::TestNeedsSsh::test_local_hostname[127.0.0.1] remoto/tests/backends/test_backends.py::TestNeedsSsh::test_local_hostname[127.0.1.1] remoto/tests/backends/test_backends.py::TestLegacyRemoteModule::test_importing_it_sets_it_as_remote_module remoto/tests/backends/test_backends.py::TestLegacyRemoteModule::test_importing_it_returns_the_module_too remoto/tests/backends/test_backends.py::TestLegacyRemoteModule::test_execute_the_remote_module_send remoto/tests/backends/test_backends.py::TestLegacyRemoteModule::test_execute_the_remote_module_receive remoto/tests/backends/test_backends.py::TestLegacyModuleExecuteArgs::test_single_argument remoto/tests/backends/test_backends.py::TestLegacyModuleExecuteArgs::test_more_than_one_argument remoto/tests/backends/test_backends.py::TestLegacyModuleExecuteArgs::test_dictionary_as_argument remoto/tests/backends/test_backends.py::TestLegacyModuleExecuteGetAttr::test_raise_attribute_error remoto/tests/backends/test_backends.py::TestMakeConnectionString::test_makes_sudo_python_no_ssh remoto/tests/backends/test_backends.py::TestMakeConnectionString::test_makes_sudo_python_with_ssh remoto/tests/backends/test_backends.py::TestMakeConnectionString::test_makes_sudo_python_with_ssh_options remoto/tests/backends/test_backends.py::TestMakeConnectionString::test_makes_python_no_ssh remoto/tests/backends/test_backends.py::TestMakeConnectionString::test_makes_python_with_ssh remoto/tests/backends/test_backends.py::TestMakeConnectionString::test_ssh_is_forced remoto/tests/backends/test_backends.py::TestMakeConnectionString::test_makes_sudo_python_with_forced_ssh remoto/tests/backends/test_backends.py::TestMakeConnectionString::test_does_not_make_sudo_python_with_forced_sudo remoto/tests/backends/test_backends.py::TestMakeConnectionString::test_detects_python3 remoto/tests/backends/test_backends.py::TestMakeConnectionString::test_detects_python2 remoto/tests/backends/test_backends.py::TestDetectSudo::test_does_not_need_sudo remoto/tests/backends/test_backends.py::TestDetectSudo::test_does_need_sudo remoto/tests/backends/test_backends.py::TestGetPythonExecutable::test_non_zero remoto/tests/backends/test_backends.py::TestGetPythonExecutable::test_no_stdout remoto/tests/backends/test_backends.py::TestGetPythonExecutable::test_which
remoto/backends/__init__.py
remoto/backends/__init__.py