문제

I am trying to use matplotlib within the Ironpython environment, using "import matplotlib.pyplot as plot".

However, I have seen this error for more than 3 hours, and could not figure out how to solve this problem.

cannot import _path from matplotlib
    Traceback:
      line 35, in <module>, "C:\Users\noclew\AppData\Local\Enthought\Canopy\User\Lib\site-packages\matplotlib\transforms.py"

It seems that Ironpython cannot locate _path.pyd file, even though it can detect the location of the matplotlib location.

It will be greaaaaatly appreciated if you let me how to deal with this issue. I am using matplotlib 1.3.1 extracted from Canopy library, and IronPython 2.7.4 32bit.

Here below is my importing code

import clr
clr.AddReference("mtrand") 
import rhinoscriptsyntax as rs
import Rhino as r
import nUtil as nu

import nNetworkx as nx
import numpy as np

import matplotlib as mpl
import matplotlib.pyplot as plt
도움이 되었습니까?

해결책

Unfortunately, IronPython does not support CPython .pyd files. The IronClad project attempted to do so but updating it to work with the latest IronPython and CPython would likely be an enormous undertaking.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top