In short: no, you can't. You have to install the package.
There are at least two options. First, you can install the packages that are not in the system to your home dir (but this is messy and dependent on the changes to the OS-level setup). You use:
pip install --user pandas
However, a better way is to use virtual environment (e.g. venv
):
python -m venv local-env
In this way you can create a local copy of Python environment in which you can install pandas
and any other dependencies of your code. And it is fully under your control.
On venv
you can read more in the Python documentation.