c++调用python脚本问题

Traceback (most recent call last):
File "", line 1, in
File "E:\WXN\Python\Project\Backoff_sent.py", line 3, in
import nltk
File "D:\software\Python\lib\site-packages\nltk__init__.py", line 89, in
from nltk.internals import config_java
File "D:\software\Python\lib\site-packages\nltk\internals.py", line 29, in
from nltk import compat
File "D:\software\Python\lib\site-packages\nltk\compat.py", line 97, in
from urllib2 import (urlopen, HTTPError, URLError,
File "D:\software\Python\Lib\urllib2.py", line 94, in
import httplib
File "D:\software\Python\Lib\httplib.py", line 71, in
import socket
File "D:\software\Python\Lib\socket.py", line 47, in
import _socket
ImportError: No module named _socket
以上是运行出错的内容,我看了D:\software\Python\Lib中没有_socket.py,在D:\software\Python\DLLs中有_socket.pyd文件。这个问题该怎么解决?请教各位大神。

1个回答

Tina_Seven
Tina_Seven 这个是?
大约 3 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐