-
Notifications
You must be signed in to change notification settings - Fork 20
Python
Gabor Szarnyas edited this page Sep 25, 2023
·
5 revisions
- The Python Tutorial
- The Python Standard Library
- Python Cookbook
- A non-magical introduction to Pip and Virtualenv for Python beginners
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
!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.