Skip to content
Gabor Szarnyas edited this page Sep 25, 2023 · 5 revisions

Tutorials

Style guides

Troubleshooting

Problem: Pip is broken: pip output ImportError: No module named 'pip'

Solution: http://askubuntu.com/questions/412178/how-to-install-pip-for-python-3-in-ubuntu-12-04-lts

sudo apt-get install python3-setuptools
sudo easy_install3 pip

IPython/Jupyter notebooks pick up the wrong packages

!pip install duckdb==0.8.1
import duckdb
print(duckdb.__version__)

Outputs:

Requirement already satisfied: duckdb==0.8.1 in /opt/homebrew/lib/python3.11/site-packages (0.8.1)
[...]
v0.6.2-dev2098

Use %pip instead of !pip:

%pip install duckdb==0.8.1

Don't forget to restart the kernel to ensure the new package is picked up.

Clone this wiki locally