Issue 1:
A clear and concise description of what the bug is.

Process

Using Ubuntu 22.04.5, MiniConda, Python3.8

install superset

superset db upgrade

Actual results

Traceback (most recent call last):
File "/home/chick/miniconda3/envs/py38/bin/superset", line 5, in <module>
from superset.cli.main import superset
File "/home/chick/miniconda3/envs/py38/lib/python3.8/site-packages/superset/__init__.py", line 21, in <module>
from superset.app import create_app
File "/home/chick/miniconda3/envs/py38/lib/python3.8/site-packages/superset/app.py", line 23, in <module>
from superset.initialization import SupersetAppInitializer
File "/home/chick/miniconda3/envs/py38/lib/python3.8/site-packages/superset/initialization/__init__.py", line 33, in <module>
from superset.extensions import (
File "/home/chick/miniconda3/envs/py38/lib/python3.8/site-packages/superset/extensions/__init__.py", line 32, in <module>
from superset.utils.cache_manager import CacheManager
File "/home/chick/miniconda3/envs/py38/lib/python3.8/site-packages/superset/utils/cache_manager.py", line 24, in <module>
from superset.utils.core import DatasourceType
File "/home/chick/miniconda3/envs/py38/lib/python3.8/site-packages/superset/utils/core.py", line 76, in <module>
from cryptography.hazmat.backends.openssl.x509 import _Certificate
ModuleNotFoundError: No module named 'cryptography.hazmat.backends.openssl.x509'

Environment

Ubuntu 22.04.5,

MiniConda,

Python3.8

Issue 2:
Trying to install Superset 2.0.1 in a fresh Python 3.8.10 virtual environment fails with ModuleNotFoundError.

How to reproduce the bug

# su - superset
$ python3.8 -m venv venv
$ source ./venv/bin/activate
$ pip install --upgrade setuptools pip wheel
$ pip install apache-superset==2.0.1
$ export PYTHONPATH=/home/superset
$ export FLASK_APP=superset
$ superset
Traceback (most recent call last):
File "/home/superset/venv/bin/superset", line 5, in <module>
from superset.cli.main import superset
File "/home/superset/venv/lib/python3.8/site-packages/superset/__init__.py", line 21, in <module>
from superset.app import create_app
File "/home/superset/venv/lib/python3.8/site-packages/superset/app.py", line 23, in <module>
from superset.initialization import SupersetAppInitializer
File "/home/superset/venv/lib/python3.8/site-packages/superset/initialization/__init__.py", line 33, in <module>
from superset.extensions import (
File "/home/superset/venv/lib/python3.8/site-packages/superset/extensions/__init__.py", line 32, in <module>
from superset.utils.cache_manager import CacheManager
File "/home/superset/venv/lib/python3.8/site-packages/superset/utils/cache_manager.py", line 24, in <module>
from superset.utils.core import DatasourceType
File "/home/superset/venv/lib/python3.8/site-packages/superset/utils/core.py", line 76, in <module>
from cryptography.hazmat.backends.openssl.x509 import _Certificate
ModuleNotFoundError: No module named 'cryptography.hazmat.backends.openssl.x509'

But clearly cryptography is installed:

$ pip install cryptography
Requirement already satisfied: cryptography in ./venv/lib/python3.8/site-packages (39.0.0)
Requirement already satisfied: cffi>=1.12 in ./venv/lib/python3.8/site-packages (from cryptography) (1.15.1)
Requirement already satisfied: pycparser in ./venv/lib/python3.8/site-packages (from cffi>=1.12->cryptography) (2.21)

Expected results

Superset runs.

Actual results

ModuleNotFoundError from Python.

Environment

System is Ubuntu 20.04 "focal" with Python 3.8.10.

Checklist

I have checked the superset logs for python stacktraces and included it here as text if there are any.

I have reproduced the issue with at least the latest released version of superset.

I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

The system is currently running Superset 2.0.0 fine in another virtualenv.