deadsnakes / issues

Issues for https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
86 stars 6 forks source link

How to import google.cloud module #171

Closed snowgato closed 3 years ago

snowgato commented 3 years ago

Hi, I'd like to use python3.10 for matching pattern feature I've installed it doing: adding sudo add-apt-repository ppa:deadsnakes/ppa sudo apt update sudo apt install python3.10

Unfortunately, it doesn't work when I try to import google.cloud module: ModuleNotFoundError: No module named 'google' I have installed python3.10-venv, but can't import thought google.cloud module

Is there a simple way to install this module and others like on python3.8 ? I am using wsl2 with ubuntu20.04, with python3.8 running fine but no match pattern feature :-) Thanks for your help

asottile commented 3 years ago

google.cloud is not a standard library module so you'll need to install it using pip -- you probably want to use a virtualenv:

python3.10 -m venv venv
. venv/bin/activate
pip install ...

you can learn more about virtualenvs here