Compare commits

...
Author SHA1 Message Date
Andrew Ferlitsch 08d67c7463 test: debugging 2023-02-16 16:16:28 +00:00
Andrew Ferlitsch 463fbdada1 test: debugging 2023-02-16 01:27:41 +00:00
Andrew Ferlitsch d250cb1196 test: debugging 2023-02-16 01:06:09 +00:00
Andrew Ferlitsch cb31a4ab91 test: debugging 2023-02-16 00:53:39 +00:00
Andrew Ferlitsch 528ee100f2 test: debugging 2023-02-16 00:35:11 +00:00
@@ -0,0 +1,103 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"id": "415646a6-b435-409f-856b-ad06676c8dd2",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[33m WARNING: The script google-oauthlib-tool is installed in '/home/jupyter/.local/bin' which is not on PATH.\n",
" Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.\u001b[0m\u001b[33m\n",
"\u001b[0m\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
"pandas-gbq 0.19.1 requires google-api-core<3.0.0dev,>=2.10.2, but you have google-api-core 2.10.0 which is incompatible.\n",
"pandas-gbq 0.19.1 requires google-auth-oauthlib>=0.7.0, but you have google-auth-oauthlib 0.4.6 which is incompatible.\n",
"google-cloud-vision 3.3.1 requires google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0, but you have google-api-core 2.10.0 which is incompatible.\n",
"google-cloud-notebooks 1.6.1 requires google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0, but you have google-api-core 2.10.0 which is incompatible.\n",
"google-cloud-bigquery-storage 2.18.1 requires google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0, but you have google-api-core 2.10.0 which is incompatible.\n",
"tf-models-official 2.11.3 requires numpy>=1.20, but you have numpy 1.18.5 which is incompatible.\n",
"tf-models-official 2.11.3 requires tensorflow~=2.11.0, but you have tensorflow 2.7.0 which is incompatible.\n",
"google-vizier 0.0.15 requires google-api-python-client>=2.65.0, but you have google-api-python-client 1.12.11 which is incompatible.\n",
"google-vizier 0.0.15 requires numpy>=1.21.5, but you have numpy 1.18.5 which is incompatible.\n",
"cloud-tpu-client 0.10 requires google-api-python-client==1.8.0, but you have google-api-python-client 1.12.11 which is incompatible.\u001b[0m\u001b[31m\n",
"\u001b[0m"
]
}
],
"source": [
"import os\n",
"\n",
"# The Vertex AI Workbench Notebook product has specific requirements\n",
"IS_WORKBENCH_NOTEBOOK = os.getenv(\"DL_ANACONDA_HOME\") and not os.getenv(\"VIRTUAL_ENV\")\n",
"IS_USER_MANAGED_WORKBENCH_NOTEBOOK = os.path.exists(\n",
" \"/opt/deeplearning/metadata/env_version\"\n",
")\n",
"\n",
"# Vertex AI Notebook requires dependencies to be installed with '--user'\n",
"USER_FLAG = \"\"\n",
"if IS_WORKBENCH_NOTEBOOK:\n",
" USER_FLAG = \"--user\"\n",
"\n",
"# Install the packages\n",
"! pip3 install {USER_FLAG} -q --upgrade google-cloud-aiplatform \\\n",
" google-cloud-storage \\\n",
" pandas-gbq\n",
"\n",
"! pip3 install {USER_FLAG} -q -U google-cloud-aiplatform \"shapely<2\" \\\n",
" tensorflow==2.7 \\\n",
" google-api-core==2.10 \\\n",
" protobuf==3.20.3"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "7018941a-8076-4dec-85cd-ad35394ad1ef",
"metadata": {},
"outputs": [],
"source": [
"import google.cloud.aiplatform as aiplatform\n",
"import pandas as pd\n",
"import tensorflow"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "995dd18e-7fcc-4cd6-a0cc-ae8ab093c24e",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"environment": {
"kernel": "python3",
"name": "common-cu110.m102",
"type": "gcloud",
"uri": "gcr.io/deeplearning-platform-release/base-cu110:m102"
},
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}