Skip to content

python embedding; conda env #2031

Locked Answered by georgemccabe
junmeiban asked this question in Configuration
Jan 31, 2023 · 1 comments · 13 replies
Discussion options

You must be logged in to vote

Hi @junmeiban, when you run a Python Embedding script in MET, it uses the version of Python that was installed with the MET tools by default. You can set the MET_PYTHON_EXE environment variable to the full path of another python3 binary to use that version of Python to run your script in MET. If the version of python3 in your path is the one you want to use, you can set:

export MET_PYTHON_EXE=which python3`

FYI, starting in the upcoming MET 11.1.0 release, the version of Python that is being used by the commands will be logged so it will be much easier to tell what is being used.

Please let me know if this resolves your issue or if you need additional assistance.

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@jprestop
Comment options

@junmeiban
Comment options

@jprestop
Comment options

@DanielAdriaansen
Comment options

@junmeiban
Comment options

Answer selected by junmeiban
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment