Python packages

The Sandbox IVM contains pre-installed Python packages. You can also install additional packages using the instructions below.

FinnGen register data can be accessed in BigQuery using both R and Python.

Installed Python packages

You can list all installed Python packages using the following command:

pip3 list

To find if a specific Python package has been installed, please use the following command:

pip3 show <package name>

If the package has not been installed then the following warning message is shown:

WARNING: Package(s) not found: <package name>

How to install new Python packages

You can install packages to your Sandbox IVM from a PyPI server installed within the Sandbox environment. It is not connected to the public internet and only contains packages added there by the Sandbox administrators. Your sandbox IVM has been pre-configured to access this PyPI server when you use the pip3 (Python 3) or pip2 (Python 2) command.

You can ask for new packages to be added to the PyPI server by contacting the Humgen service desk.

You can install a new package using the following command:

pip3 install <package name>

or

pip2 install <package name>

It is also possible to install Python packages to Python virtual environments using the pip3 or pip2 command.

Last updated