window下安装pyspark

1、按照链接安装

https://blog.csdn.net/m0_37937917/article/details/81159193

https://blog.csdn.net/qq_39905917/article/details/89460587

2、VScode import pyspark 报错

from py4j.protocol import Py4JError
ModuleNotFoundError: No module named 'py4j'

解决方法:安装py4j库

一般的在cmd命令行下 pip install py4j 就可以。若是没有将pip路径添加到path中,就将路径切换到python的Scripts中,然后再 pip install py4j 来安装库。

发布了110 篇原创文章 · 获赞 18 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/momo_mo520/article/details/102731849