0

我已经安装了pysctppython 模块(python 版本:3.5.2,Ubuntu:16.04)。但是当我尝试导入它时,我得到 importError 为:

ImportError: /home/labuser/framework/my_env/lib/python3.5/site-packages/_sctp.cpython-35m-x86_64-linux-gnu.so: undefined symbol: PyString_FromStringAndSize
version:
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux

我已经安装了所需的依赖项:libsctp-devpython-dev/或python3-dev

pip install pysctp
$ python
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sctp
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/labuser/framework/my_env/lib/python3.5/site-packages/sctp.py", line 55, in <module>
    import _sctp
ImportError: /home/labuser/framework/my_env/lib/python3.5/site-packages/_sctp.cpython-35m-x86_64-linux-gnu.so: undefined symbol: PyString_FromStringAndSize
>>>
4

1 回答 1

0

我认为这个包有问题,pysctp因为我在使用 pip 命令pip install pysctppip3 install pysctpUbuntu 18.04 安装包时收到了一条错误消息。您可能需要在https://github.com/P1sec/pysctp的 github 存储库中向他们报告问题。

于 2019-03-26T18:43:30.810 回答