Google ColaboratoryでローカルGPUに接続したときのgoogle-colabのインストール
解決したいこと
こんにちは。お世話になります。初心者です。
Google Colabで、ローカルのGPU(Quadro)に接続しました。その後、ホストランタイムのGPU(T4)で動いていた画像分類のコードをそのまま使いたいのですが、最初のセルで動きません。おそらくかなり初歩的な部分と思いますが、解決できないでしょうか。
発生している問題・エラー
!pip install timm -q
!pip install google -q
!pip install google-colab -q
の、
!pip install google-colab -q
のところで、
error: subprocess-exited-with-error
python setup.py egg_info did not run successfully.
exit code: 1
[13 lines of output]
C:\Users\Owner\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\setuptools\__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
error in pandas setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after version specifier)
pytz >= 2011k
~~~~~~~^
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
自分で試したこと
Chat GPTやPerplexity AIと相談し、
!pip install --upgrade setuptools
!pip install pandas==1.2.5
!pip install --use-pep517 timm -q
!pip install --use-pep517 google -q
!pip install --use-pep517 google-colab -q
と試したのですが、
最後の!pip install --use-pep517 google-colab -q
で、
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pandas
ERROR: Could not build wheels for pandas, which is required to install pyproject.toml-based projects
error: subprocess-exited-with-error
Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1
[3 lines of output]
error in pandas setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after version specifier)
pytz >= 2011k
~~~~~~~^
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
となり、google_colabがinstallできません。
ご助言を頂けますと幸いです。
どうぞよろしくお願いいたします。