Python中:“import sitecustomize”失败;

2024-10-01 00:28:46 发布

您现在位置:Python中文网/ 问答频道 /正文

我只是不明白为什么我的代码会生成错误消息:

'import sitecustomize' failed

代码如下:

from numpy import *
from pycalfem import *
from pycalfem_utils import *
def createInput():
edof=array([[1,2,3,4,5,6],
            [1,2,7,8,3,4],
            [3,4,7,8,9,10],
            [7,8,11,12,9,10]])
dof=array([[1,2],
          [5,6],
          [7,8],
          [3,4],
          [11,12],
          [9,10]])
Coord=array([[0,0],
             [0,0.1],
             [0.1,0],
             [0.1,0.1],
             [0.2,0],
             [0.2,0.1]])
bc=array([[1,0],[2,0],[4,0],[5,0]])
ex,ey=coordxtr(edof,Coord,dof)
return ex,ey,bc,edof

if __name__=="main":
print("Hej")
ex,ey,bc,edof=createInput()

Tags: 代码fromimport消息错误arrayexbc