带有Meshpy的Python2.x

时间:2018-10-17 07:14:29

标签: python pip mesh

我刚刚开始与ubuntu合作,所以我的知识不是最大的。对于我的个人研究,我尝试安装robbievanleeuwen(https://github.com/robbievanleeuwen/section-properties)的section-properties。

其中一个前提是安装AndreasKlöckner(https://documen.tician.de/meshpy/installation.html)的meshpy

在终端中插入

  

pip install meshpy

它正确安装了meshpy,但对于python3.6,尽管我使用pip而不是pip3。因此,路径为/usr/local/lib/python3.6/dist-packages/meshpy

programm的部分属性实际上在python 2.x下运行

在主文件夹中运行example.py时,出现以下错误。

~/Downloads/section-properties-master$ python example.py 
Traceback (most recent call last):
  File "example.py", line 13, in <module>
    import main
  File "/home/pantau/Downloads/section-properties-master/main.py", line 7, in <module>
    import mesh2D
  File "/home/pantau/Downloads/section-properties-master/mesh2D.py", line 11, in <module>
    import elementDefinitions
  File "/home/pantau/Downloads/section-properties-master/elementDefinitions.py", line 7, in <module>
    import femFunctions
  File "/home/pantau/Downloads/section-properties-master/femFunctions.py", line 6, in <module>
    import meshpy.triangle as triangle
ImportError: No module named meshpy.triangle

我不了解AndreasKlöckner的安装Meshypy的说明。 解决No module named 'meshpy._triangle' apt-get install python2.7-dev不是解决方案

感谢您的任何答复

0 个答案:

没有答案