===none What: tclpython Where: https://github.com/amykyta3/tclpython/ Description: Tcl extension which allows you to create python interpreters from within a Tcl application and evaluate python code. Currently at version 4.2 Updated: 2017-09 === ---- This package allows the execution of Python code from a Tcl interpreter, as in: ====== package require tclpython 4.2 set interpreter [python::interp new] $interpreter exec {print("Hello World")} puts [$interpreter eval 3/2.0] python::interp delete $interpreter ====== which outputs: ======none Hello World 1.5 ====== It works by creating one or more embedded Python interpreters and sending them strings to evaluate or execute. Modules can be loaded in the Python interpreter as if it were the real Python program. Also supports importing the Python3 interpreter: ====== package require tclpython3 4.2 set interpreter [python3::interp new] ====== ---- '''[mkn] - 2017-09-27 17:44:24''' ====== package require tclpython3 4.2 set interp [python3::interp new] Fatal Python error: Py_Initialize: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' Current thread 0x00002b68 (most recent call first): ====== I followed your instructions here https://github.com/amykyta3/tclpython/blob/master/msvc/README.md%|%README.md%|% but I obtain this error python='''3.6''' tcl='''8.5''' Any help will be appreciated... ---- '''[mkn] - 2017-09-28 16:14:46''' i added '''PYTHONHOME''' & '''PYTHONPATH''' and it works... ---- '''[amykyta3] - 2017-09-30 05:56:29''' Thanks for finding. I'll look into it (https://github.com/amykyta3/tclpython/issues/6%|%Issue #6%|%). Probably just need to add a note about that in the Readme instructions. In the future, please submit bugs as issue tickets here: https://github.com/amykyta3/tclpython/issues I'll be far more likely to notice them since I probably won't check this page all that often. <> Package