Issue 34036: ModuleNotFoundError: No module named '_ctypes' when install Python 3.7 on Linux (original) (raw)
Issue34036
Created on 2018-07-03 19:10 by semkin, last changed 2022-04-11 14:59 by admin. This issue is now closed.
Messages (3) | ||
---|---|---|
msg320998 - (view) | Author: Semyon Levin (semkin) | Date: 2018-07-03 19:10 |
make install failed with File "/tmp/tmp2gwe2ma_/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/utils/glibc.py", line 3, in File "/common/dev/slevin/tools/Python-3.7.0/Lib/ctypes/__init__.py", line 7, in from _ctypes import Union, Structure, Array ModuleNotFoundError: No module named '_ctypes' make: *** [install] Error 1 I used PKG_CONFIG_PATH in config and LIBFFI_INCLUDEDIR was created correctly in Makefile. How to configure location for libffi.a ? | ||
msg321252 - (view) | Author: Martin Panter (martin.panter) * ![]() |
Date: 2018-07-08 03:40 |
Ctypes is meant to be (at least it used to be) an optional module. If you don’t actually care about building ctypes, this might be the same as Issue 31652. Using “configure --without-ensurepip” was suggested as a workaround. If you do want ctypes to be built, I would look for compiler and linker messages relating to the “_ctypes” module (before the install step). | ||
msg404374 - (view) | Author: Irit Katriel (iritkatriel) * ![]() |
Date: 2021-10-19 23:03 |
3.7 is no longer maintained. Please create a new issue if you are still having this problem with a current version of python (3.9+). |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:59:02 | admin | set | github: 78217 |
2021-10-19 23:03:28 | iritkatriel | set | status: open -> closednosy: + iritkatrielmessages: + resolution: out of datestage: resolved |
2018-07-08 03:40:15 | martin.panter | set | superseder: make install fails: no module _ctypesmessages: + nosy: + martin.panter |
2018-07-03 19:11:23 | semkin | set | components: + Installationversions: + Python 3.7 |
2018-07-03 19:10:48 | semkin | create |