How to Install google-cloud-storage in Python
Google Cloud Storage API client library
pip install google-cloud-storage
What is google-cloud-storage?
Google Cloud Storage API client library
is a managed service for storing unstructured data. Cloud Storage allows world-wide storage and retrieval of any amount of data at any time. You can use Cloud Storage for a range of scenarios including serving website content, storing data for archival and disaster recovery, or distributing large data objects to users via direct download.
A comprehensive list of changes in each version may be found in the .
Certain control plane and long-running operations for Cloud Storage (including Folder and Managed Folder operations) are supported via the . The creates one space to perform metadata-specific, control plane, and long-running operations apart from the Storage API.
Quick Start
Minimal example to get started with google-cloud-storage:
import google.cloud.storage
print(google.cloud.storage.__version__)
Installation
pip (standard)
pip install google-cloud-storage
Virtual environment (recommended)
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install google-cloud-storage
pip3
pip3 install google-cloud-storage
conda
conda install -c conda-forge google-cloud-storage
Poetry
poetry add google-cloud-storage
Dependencies
Installing google-cloud-storage will also install these packages:
Verify the Installation
After installing, confirm the package is available:
python -c "import google.cloud.storage; print(google.cloud.storage.__version__)"
If this prints a version number, installation succeeded. If you see a ModuleNotFoundError, see the errors section below.
Installation Errors
Common errors when installing google-cloud-storage with pip.
ModuleNotFoundError: No module named 'google.cloud.storage'
Cause: The package is not installed in the current Python environment.
Fix: Run pip install google-cloud-storage. If using a virtual environment, ensure it is activated first.
ModuleNotFoundError: No module named 'google.cloud.storage' (installed but still failing)
Cause: pip installed the package into a different Python than the one running your script.
Fix: Use python -m pip install google-cloud-storage to install into the interpreter you are running.
ImportError: cannot import name 'X' from 'google.cloud.storage'
Cause: The function or class does not exist in the installed version.
Fix: Check the version with pip show google-cloud-storage and upgrade with pip install --upgrade google-cloud-storage.
pip: command not found
Cause: pip is not in PATH or Python was not added to PATH during installation.
Fix: Try python -m pip install google-cloud-storage. On macOS/Linux try pip3.
PermissionError: [Errno 13] Permission denied
Cause: No write access to the system Python package directory.
Fix: Use a virtual environment, or add --user: pip install --user google-cloud-storage
SSL: CERTIFICATE_VERIFY_FAILED
Cause: pip cannot verify PyPI's SSL certificate — common behind corporate proxies.
Fix: Try: pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org google-cloud-storage
Recent Releases
| Version | Released |
|---|---|
3.10.1 latest |
2026-03-23 |
3.10.0 |
2026-03-18 |
3.9.0 |
2026-02-02 |
3.8.0 |
2026-01-14 |
3.7.0 |
2025-12-09 |
Manage google-cloud-storage
Upgrade to latest version
pip install --upgrade google-cloud-storage
Install a specific version
pip install google-cloud-storage==3.10.1
Uninstall
pip uninstall google-cloud-storage
Check what is installed
pip show google-cloud-storage