Tina_Seven
Tina_Seven
采纳率0%
2017-03-15 10:50

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条回答

相关推荐