我一般都是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`