pyspark错误 - ImportError:没有名为types的模块

时间:2016-04-04 08:23:34

标签: types pyspark

我一般都是pyspark和python的新手,当我尝试导入类型模块时,我不断收到此错误:

from pyspark.sql import SQLContext
from pyspark.sql.types import *

我明白了:

`ImportError                               Traceback (most recent call last)
 <ipython-input-9-d10338475100> in <module>()
  1 from pyspark.sql import SQLContext
  ----> 2 from pyspark.sql.types import *

ImportError: No module named types`

0 个答案:

没有答案