nytai commented on a change in pull request #13781: URL: https://github.com/apache/superset/pull/13781#discussion_r600800366
########## File path: docs/src/pages/docs/installation/installing_scratch.mdx ########## @@ -50,21 +50,30 @@ We don't recommend using the system installed Python. Instead, first install the [homebrew](https://brew.sh/) manager and then run the following commands: ``` -brew install pkg-config libffi openssl python - -env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography==2.4.2 +brew install readline pkg-config libffi openssl mysql postgres ``` +You should install a recent version of Python (Superset uses 3.7.9). We'd recommend using a Python version manager like [pyenv](https://github.com/pyenv/pyenv) (and also [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv)). + Let's also make sure we have the latest version of `pip` and `setuptools`: ``` pip install --upgrade setuptools pip ``` +Lastly, you may need to set LDFLAGS and CFLAGS for certain Python packages to properly build. You can export these variables with: + +``` +export LDFLAGS="-L$(brew --prefix openssl)/lib" +export CFLAGS="-I$(brew --prefix openssl)/include" +``` + +These will now be available when pip installing requirements. Review comment: ❤️ 👍 -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
