MinGW-w64 프로젝트의 gdborig.exe (https://sourceforge.net/p/mingw-w64/discussion/723798/thread/4a8a9ed5/?limit=25)의 임베디드 Python 인터프리터에 문제가 있습니다.임베디드 파이썬 인터프리터가 C 모듈을 가져 오지 못함
모듈 itertools 및 여러 모듈 가져 오기가 실패합니다. 그러나 분산 된 독립형 파이썬 인터프리터에 해당하는 수입은 잘 작동 : 임베디드 파이썬 인터프리터와
>>> import sys
>>> print sys.version
2.7.9 (default, Jul 11 2016, 16:32:13)
[GCC 6.1.0]
>>> print sys.executable
C:/AUEMARK/Programme/MinGW64/mingw64/opt/bin/python.exe
>>> import itertools
>>> itertools
<module 'itertools' from 'C:\AUEMARK\Programme\MinGW64\mingw64\opt\libpython2.7\lib-dynload/itertools.pyd'>
:
(gdb) python import sys
(gdb) python print sys.version
2.7.9 (default, Jul 11 2016, 16:32:13)
[GCC 6.1.0]
(gdb) python print sys.executable
C:/AUEMARK/Programme/MinGW64/mingw64/opt/bin/python.exe
(gdb) python import itertools
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named itertools
Error while executing Python code.
수 :
- 수입 SYS
- 수입 OS
는 할 수 없습니다
- 수입 itertools에게
- 수입 컬렉션
- ...
(gdb) python import collections Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\AUEMARK\Programme\MinW64\mingw64\opt\lib\python2.7/collections.py", line 8, in <module> from _collections import deque, defaultdict Importerror: no module named _collections Error while executing Python code.
그래서이 포함 된 인터프리터처럼 보인다 컬렉션의 수입
오류 메시지 C에서 모듈을 가져올 수 없습니다. 파이썬 모듈을 가져오고, C 모듈의 파이썬 부분도 가져올 수 있습니다. 임베디드 인터프리터가 액세스합니다.
어떤 힌트를 주셔서 감사합니다. 어떻게이 문제를 해결할 수 있습니까?
마르쿠스