Calling Python from bash

From NovaOrdis Knowledge Base
Revision as of 21:37, 15 February 2022 by Ovidiu (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

Internal

Overview

Inline Python Code

  python <<EOF
print('blah')
EOF

Code in External Script

Using the Interpreter from the a Virtual Environment

If you want to use the interpreter from a specific virtual environment instead of the interpreter found in PATH.