MaxGekk commented on issue #28152: [SPARK-31382][BUILD] Show a better error message for different python and pip installation mistake URL: https://github.com/apache/spark/pull/28152#issuecomment-611127854 I have faced to the issue. The recommended command `python -m pip install pyspark` failed with ``` nstalling collected packages: py4j, pyspark Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/py4j-0.10.7.dist-info' ``` I had to provide the `--user` option: ``` $ python -m pip install pyspark --user $ pyspark WARNING: Python 2.7 is not recommended. This version is included in macOS for compatibility with legacy software. Future versions of macOS will not include Python 2.7. Instead, it is recommended that you transition to using 'python3' from within Terminal. Welcome to ____ __ / __/__ ___ _____/ /__ _\ \/ _ \/ _ `/ __/ '_/ /__ / .__/\_,_/_/ /_/\_\ version 2.4.5 /_/ Using Python version 2.7.16 (default, Feb 29 2020 01:55:37) SparkSession available as 'spark'. >>> ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
