File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
content.zh/docs/dev/python Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ It supports to specify the path of the Python interpreter to execute Python work
237237You could specify the Python interpreter inside the code using Python Table API as following:
238238
239239``` python
240- table_env.set_python_executable(" /path/to/python" )
240+ table_env.get_config(). set_python_executable(" /path/to/python" )
241241```
242242
243243or using Python DataStream API as following:
@@ -251,7 +251,7 @@ It also supports to use the Python interpreter inside an archive file.
251251``` python
252252# Python Table API
253253table_env.add_python_archive(" /path/to/py_env.zip" , " venv" )
254- table_env.set_python_executable(" venv/py_env/bin/python" )
254+ table_env.get_config(). set_python_executable(" venv/py_env/bin/python" )
255255
256256# Python DataStream API
257257stream_execution_environment.add_python_archive(" /path/to/py_env.zip" , " venv" )
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ It supports to specify the path of the Python interpreter to execute Python work
237237You could specify the Python interpreter inside the code using Python Table API as following:
238238
239239``` python
240- table_env.set_python_executable(" /path/to/python" )
240+ table_env.get_config(). set_python_executable(" /path/to/python" )
241241```
242242
243243or using Python DataStream API as following:
@@ -251,7 +251,7 @@ It also supports to use the Python interpreter inside an archive file.
251251``` python
252252# Python Table API
253253table_env.add_python_archive(" /path/to/py_env.zip" , " venv" )
254- table_env.set_python_executable(" venv/py_env/bin/python" )
254+ table_env.get_config(). set_python_executable(" venv/py_env/bin/python" )
255255
256256# Python DataStream API
257257stream_execution_environment.add_python_archive(" /path/to/py_env.zip" , " venv" )
You can’t perform that action at this time.
0 commit comments