Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google colab での pip install タイムアウト #2

Closed
devemin opened this issue Nov 27, 2021 · 1 comment
Closed

Google colab での pip install タイムアウト #2

devemin opened this issue Nov 27, 2021 · 1 comment

Comments

@devemin
Copy link

devemin commented Nov 27, 2021

こんばんは!

こちらのリポジトリを試させて頂いてるのですが、
Google Colab の作業の途中の、

!cp /content/models/research/object_detection/packages/tf2/setup.py .
!python -m pip install .

の所がどうしてもタイムアウトになり、続く作業が出来なかったので、調べてみたら、
pip のバージョンが上がってると依存チェックが時間がかかるようで、

!python -m pip install . --use-deprecated=legacy-resolver
というふうにオプションをつけると、うまく数分で終わりました。

参考:
https://qiita.com/ksato9700/items/ec30d726a1508c7985a0
https://note.com/npaka/n/n92580a746f2d

素晴らしいリポジトリをありがとうございます。
ご報告まで m(_ _)m

@Kazuhito00
Copy link
Owner

ご連絡ありがとうございます。
「!python -m pip install . --use-deprecated=legacy-resolver」に変更しました。
tensorflow/modelsリポジトリ側でも問題になっているようなので、ウォッチして対応され次第、取り込もうかと思います。


For those who searched in English.

The following pip installation takes a long time to resolve dependencies and times out.
Therefore, the "--use-deprecated = legacy-resolver" option is specified as a provisional support.

!cp /content/models/research/object_detection/packages/tf2/setup.py .
!python -m pip install .

This problem is also an issue on the tensorflow/models repository side.
It will be reflected in this repository as soon as it is supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants