Install Napari into a conda environment and manage Python packages with Poetry.
conda env create -f environment.yml
conda activate napari-env
poetry lock
poetry install
Napari depends on Qt5 which in turn depends on libxcb on Linux. libxcb and its related libraries should be installed through your distribution's package manager (e.g. apt
) and not through Conda.
To see Qt's dependencies on libxcb and what might be missing, run the following command:
ldd <PATH_TO_CONDA>/envs/napari/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so
Alternatively, you can try launching Napari with Qt in debug mode to see the missing libraries.
QT_DEBUG_PLUGINS=1 napari
Some additional libraries that you may need to install through your package manager:
- libxcb-icccm4
- libxcb-image0
- libxcb-keysyms1
- libxcb-render0
- libxcb-render-util0
- libxcb-xinerama0
- libxcb-xkb1
You may also need this libraries from your distribution's package manager:
- libxkbcommon0
- libxkbcommon-x11-0