试图在Debian上安装sympy

试图在Debian上安装sympy,sympy,python-3.8,Sympy,Python 3.8,我想在Debian上安装sympy,但是当我编写pip3安装sympy时,出现了这个错误,我不知道为什么或者我可以为安装sympy做些什么 Collecting sympy Using cached sympy-1.7-py3-none-any.whl (5.9 MB) Collecting mpmath>=0.19 Using cached mpmath-1.1.0.tar.gz (512 kB) ERROR: Command errored ou

我想在Debian上安装sympy,但是当我编写pip3安装sympy时,出现了这个错误,我不知道为什么或者我可以为安装sympy做些什么

    Collecting sympy
    Using cached sympy-1.7-py3-none-any.whl (5.9 MB)
    Collecting mpmath>=0.19
    Using cached mpmath-1.1.0.tar.gz (512 kB)
    ERROR: Command errored out with exit status 1:
    command: /usr/local/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] =    '"'"'/tmp/pip-install-hxmtj55j/mpmath_c9b7987c1db040b698a770d3b6728d02/setup.py'"'"'; __file__='"'"'/tmp/pip-install-hxmtj55j/mpmath_c9b7987c1db040b698a770d3b6728d02/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-mdx_oaij
   cwd: /tmp/pip-install-hxmtj55j/mpmath_c9b7987c1db040b698a770d3b6728d02/
   Complete output (11 lines):
   Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line 18, in <module>
   from setuptools.dist import Distribution
   File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line 32, in <module>
   from setuptools import windows_support
   File "/usr/local/lib/python3.8/site-packages/setuptools/windows_support.py", line 2, in <module>
   import ctypes
   File "/usr/local/lib/python3.8/ctypes/__init__.py", line 7, in <module>
   from _ctypes import Union, Structure, Array
   ModuleNotFoundError: No module named '_ctypes'
   ----------------------------------------
   ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for    full command output.
收集sympy
使用缓存的sympy-1.7-py3-none-any.whl(5.9 MB)
正在收集的mpmath>=0.19
使用缓存的mpmath-1.1.0.tar.gz(512 kB)
错误:命令出错,退出状态为1:
命令:/usr/local/bin/python3.8-c'import sys、setuptools、tokenize;sys.argv[0]=“””/tmp/pip-install-hxmtj55j/mpmath_c9b7987c1db040b698a770d3b6728d02/setup.py“”__文件“''”/tmp/pip-install-hxmtj55j/mpmath_c9b7987c1db040b698a770d3b6728d02/setup.py''”;f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,“'exec'”)“egg\u info--egg base/tmp/pip-pip-egg-info-mdx\u oaij
cwd:/tmp/pip-install-hxmtj55j/mpmath_c9b7987c1db040b698a770d3b6728d02/
完整输出(11行):
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/usr/local/lib/python3.8/site packages/setuptools/_init__.py”,第18行,在
从setuptools.dist导入分发
文件“/usr/local/lib/python3.8/site packages/setuptools/dist.py”,第32行,在
从setuptools导入windows\u支持
文件“/usr/local/lib/python3.8/site packages/setuptools/windows_support.py”,第2行,在
导入ctypes
文件“/usr/local/lib/python3.8/ctypes/_init__.py”,第7行,在
从类型导入联合、结构、数组
ModuleNotFoundError:没有名为“\u ctypes”的模块
----------------------------------------
错误:命令出错,退出状态为1:python setup.py egg_info检查日志以获得完整的命令输出。

您需要安装
python3-dev
软件包。您需要安装
python3-dev
软件包。