-
Notifications
You must be signed in to change notification settings - Fork 15.3k
docs: pypi-installation on Ubuntu 24.04 and statsd package for event-logging #32891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,13 @@ level dependencies. | |
|
||
**Debian and Ubuntu** | ||
|
||
Ubuntu **24.04** uses python 3.12 per default, which currently is not supported by Superset. You need to add a second python installation of 3.11 and install the required additional dependencies. | ||
```bash | ||
sudo add-apt-repository ppa:deadsnakes/ppa | ||
sudo apt update | ||
sudo apt install python3.11 python3.11-dev python3.11-venv build-essential libssl-dev libffi-dev libsasl2-dev libldap2-dev default-libmysqlclient-dev | ||
``` | ||
|
||
In Ubuntu **20.04 and 22.04** the following command will ensure that the required dependencies are installed: | ||
|
||
```bash | ||
|
@@ -94,14 +101,9 @@ These will now be available when pip installing requirements. | |
|
||
## Python Virtual Environment | ||
|
||
We highly recommend installing Superset inside of a virtual environment. Python ships with | ||
`virtualenv` out of the box. If you're using [pyenv](https://github.com/pyenv/pyenv), you can install [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv). Or you can install it with `pip`: | ||
|
||
```bash | ||
pip install virtualenv | ||
``` | ||
We highly recommend installing Superset inside of a virtual environment. | ||
|
||
You can create and activate a virtual environment using: | ||
You can create and activate a virtual environment using the following commands. Ensure you are using a compatible version of python. You might have to explicitly use for example `python3.11` instead of `python3`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NOTE: we started using and recommending Stepping back, it feels like this section of the docs is hard to keep up to date and hoping in the future we can say "use docker compose for dev/POCs, and use helm for k8s, if you're going on metal, we recommend you align with our helm/docker set up" It's kind of crazy that we have to explain to people how to set up a virtualenv in the Superset doc. "Set up a python env, we don't care how you do it!" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did we need to revise anything on the topic for this PR, or should we merge as-is? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm fine with it as is, just thinking eventually we may get rid of some of the docs here / simplify |
||
|
||
```bash | ||
# virtualenv is shipped in Python 3.6+ as venv instead of pyvenv. | ||
|
@@ -132,7 +134,7 @@ pip install apache-superset | |
|
||
Then, define mandatory configurations, SECRET_KEY and FLASK_APP: | ||
```bash | ||
export SUPERSET_SECRET_KEY=YOUR-SECRET-KEY | ||
export SUPERSET_SECRET_KEY=YOUR-SECRET-KEY # For production use, make sure this is a strong key, for example generated using `openssl rand -base64 42`. See https://superset.apache.org/docs/configuration/configuring-superset#specifying-a-secret_key | ||
export FLASK_APP=superset | ||
``` | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.