.net - Importing CLR using IronPython -
i wanted give ironpython try since want learn more both python , .net underlay. installed last version (2.7.3) , trying import clr, on first line, can't run , throws error "no module named clr". googled didn't find on matter. ironpython install pretty straight forward, windows apps commonly are, can't find did miss here. clues?
imports in python case sensitive (pep 235) on case-insensitive platforms (in case) windows. (there may ways around that, sake of compatibility not recommend using them.)
if change code correct, lower case spelling should work.
import clr
if not issue wrong (non-ironpython) interpreter/implementation might cause. if running through python tools visual studio setting @ project properties/general/interpreter should show ironpython... , not standard python implementation (python...).
Comments
Post a Comment