尝试安装 NanoTCAD 时出现问题

尝试安装 NanoTCAD 时出现问题

我尝试安装 NanoTCAD 用于我的科学研究。程序页面链接如下: http://vides.nanotcad.com/vides/documentation/installation-4

然而,Ubuntu 显示如下错误屏幕:

laptop@LAPTOP-EHGAEMR1:~$ cd pyViDES
laptop@LAPTOP-EHGAEMR1:~/pyViDES$ sudo ./install.sh
[sudo] password for laptop:
sudo: unable to execute ./install.sh: No such file or directory
laptop@LAPTOP-EHGAEMR1:~/pyViDES$ sudo bash install.sh
Compiling NANOTCAD ViDES module for python
Traceback (most recent call last):
  File "./configure.py", line 3, in <module>
    import numpy
ImportError: No module named numpy
gcc -fPIC -O3 -I/usr/include/python2.6 -I/usr/lib/pymodules/python2.6/numpy/core/include/numpy -c NanoTCAD_ViDESmod.c
NanoTCAD_ViDESmod.c:1:10: fatal error: Python.h: No such file or directory
    1 | #include "Python.h"
      |          ^~~~~~~~~~
compilation terminated.
make: *** [Makefile:48: NanoTCAD_ViDESmod.o] Error 1
gcc -fPIC -O3 -I/usr/include/python2.6 -I/usr/lib/pymodules/python2.6/numpy/core/include/numpy -c NanoTCAD_ViDESmod.c
NanoTCAD_ViDESmod.c:1:10: fatal error: Python.h: No such file or directory
    1 | #include "Python.h"
      |          ^~~~~~~~~~
compilation terminated.
make: *** [Makefile:48: NanoTCAD_ViDESmod.o] Error 1
laptop@LAPTOP-EHGAEMR1:~/pyViDES$

我尝试在网上搜索解决方案,但没有结果。有人能告诉我如何解决这个问题吗?

顺便说一下,我目前正在使用 Ubuntu22.04 和 Python3.10。

相关内容