Tag Archives: The environment

ImportError: cannot import name ‘SparkSession‘

Importerror: cannot import name ‘sparksession’
cannot find sparksession
reference https://databricks.com/blog/2016/08/15/how-to-use-sparksession-in-apache-spark-2-0.html

Sparksession is only available after spark2.0
so we need to change the spark version

wget
https://archive.apache.org/dist/spark/spark-2.3.0/
Choose your own version

I cried and went to install it again

Removeerror: ‘requests’ is a dependency of CONDA and cannot be removed from CONDA’s o

Preparing transaction: done
Verifying transaction: failed

RemoveError: 'requests' is a dependency of conda and cannot be removed from
conda's operating environment.
RemoveError: 'setuptools' is a dependency of conda and cannot be removed from
conda's operating environment.

The solution
run

conda update conda

portal