This is perennial question but on EMR seems that things get more complicated. I can import sys,pyspark that is OK. But
!{sys.executable} -m pip install boto3
Got
invalid syntax (<stdin>, line 1)
File "<stdin>", line 1
!{sys.executable} -m pip install boto3
^
SyntaxError: invalid syntax
echo $PATH
invalid syntax (<stdin>, line 1)
File "<stdin>", line 1
echo $PATH
^
SyntaxError: invalid syntax
If PATH is not recognised how does import work?
How to fix install?
I changed kernel from Pyspark to Python3,now works OK.
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.