0

我正在尝试运行一个程序(显然是用 python 编写的),它需要一些 python 模块。缺少的模块之一是 aiomultiprocess。我尝试安装它,pip install aiomultiprocess pip3 install aiomultiprocess python3.7 -m pip install aiomultiprocess但它们都返回相同的错误消息:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 19, in <module>
    from setuptools.dist import Distribution
  File "/usr/local/lib/python3.7/site-packages/setuptools/dist.py", line 34, in <module>
    from setuptools import windows_support
  File "/usr/local/lib/python3.7/site-packages/setuptools/windows_support.py", line 2, in <module>
    import ctypes
  File "/usr/local/lib/python3.7/ctypes/__init__.py", line 10, in <module>
    from _ctypes import Union, Structure, Array
  File "/usr/local/lib/python3.7/_ctypes.py", line 5, in <module>
    import ffi
ModuleNotFoundError: No module named 'ffi'

没有 ffi 模块?!我们去取得它!我查了一下,发现它是一个外国库,在 python 的情况下,有两种形式:CFFI 和 LibFFI,但 python 不存在“ffi”。我安装cffi libffi并将它们添加到此路径/usr/local/lib/python3.7/site-packages/,但它没有任何改变。

所以我的问题是有另一种方法来安装 python 模块而不需要pip??!

4

0 回答 0