SageMaker supports pyspark 2.4 and I want to install latest version of pyspark in Sagemaker. Can you please let me know how can I install latest version of pyspark in SageMaker notebook.
I'm assuming you're referring to SageMaker notebook instances.
You can use the magic command %%local
to run commands locally on your instance.
For example,
%%local
!pip install --upgrade pyspark
You may need to restart the kernel for the upgraded package, and you can test it like below -
%%local
import pyspark
print("PySpark version: ", pyspark.__version__)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.