diff --git a/README.md b/README.md index 5082b9e..d7a58f7 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,10 @@ The Raster Loader documentation is available at [raster-loader.readthedocs.io](h ## Install ```bash -pip install raster-loader +pip install -U raster-loader + +pip install -U raster-loader"[bigquery]" +pip install -U raster-loader"[snowflake]" ``` ### Installing from source diff --git a/docs/source/user_guide/installation.rst b/docs/source/user_guide/installation.rst index b7e7137..03c05a2 100644 --- a/docs/source/user_guide/installation.rst +++ b/docs/source/user_guide/installation.rst @@ -7,7 +7,7 @@ Raster Loader is available on PyPI_ and can be installed with pip_: .. code-block:: bash - pip install raster-loader[all] + pip install -U raster-loader To install from source: @@ -15,21 +15,20 @@ To install from source: git clone https://github.com/cartodb/raster-loader cd raster-loader - pip install .[all] + pip install -U . .. tip:: In most cases, it is recommended to install Raster Loader in a virtual environment. Use venv_ to create and manage your virtual environment. -The above will install the dependencies required to work with both Snowflake and -BigQuery. In case you only want to work with one of them, you can install the +The above will install the dependencies required to work with both BigQuery and Snowflake and. In case you only want to work with one of them, you can install the dependencies for each of them separately: .. code-block:: bash - pip install raster-loader[snowflake] - pip install raster-loader[bigquery] + pip install -U raster-loader"[bigquery]" + pip install -U raster-loader"[snowflake]" After installing the Raster Loader package, you will have access to the :ref:`carto CLI `. To make sure the installation was successful, run the diff --git a/raster_loader/errors.py b/raster_loader/errors.py index 2c07c43..eb7e8ff 100644 --- a/raster_loader/errors.py +++ b/raster_loader/errors.py @@ -2,7 +2,7 @@ def import_error_bigquery(): # pragma: no cover msg = ( "Google Cloud BigQuery client is not installed.\n" "Please install Google Cloud BigQuery dependencies to use this function.\n" - "run `pip install -U raster-loader[bigquery]` to install from pypi." + 'run `pip install -U raster-loader"[bigquery]"` to install from pypi.' ) raise ImportError(msg) @@ -11,7 +11,7 @@ def import_error_snowflake(): # pragma: no cover msg = ( "Snowflake client is not installed.\n" "Please install Snowflake dependencies to use this function.\n" - "run `pip install -U raster-loader[snowflake]` to install from pypi." + 'run `pip install -U raster-loader"[snowflake]"` to install from pypi.' ) raise ImportError(msg)