vs codeで画像分類器作成の演習のためにgoogle-image-downloaderをpipでインストールして画像をダウンロード
しようと思ったのですが、下記のエラー文が出てきて画像を取得できません。
teratail内での質問も拝見しましたが、回答者様の端末では実行できたとの回答が多く、根本的な解決策がないように感じたので質問させていただきます。
googleimagesdownload -k '二郎系ラーメン' -l 20 Item no.: 1 --> Item name = \u4e8c\u90ce\u7cfb\u30e9\u30fc\u30e1\u30f3 Evaluating... Starting Download... Unfortunately all 20 could not be downloaded because some images were not downloadable. 0 is all we got for this search filter! Errors: 0 Everything downloaded! Total errors: 0 Total time taken: 0.9890496730804443 Seconds
これはvs codeのpythonのプログラム内になにかimportしたり、pipインストールがうまく行かないことなどもあったりするのでしょうか?
使用しているPCは
MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports)
プロセッサ 1.4 GHz クアッドコアIntel Core i5
メモリ 8 GB 2133 MHz LPDDR3
環境は
vs code
python3.7.6
tensorflow1.14.0
エラー文全体です
(base) xxxxxxx@xxxxxx image-classfication-jiro % python -m pip install git+https://github.com/Joeclinton1/google-images-download.git Collecting git+https://github.com/Joeclinton1/google-images-download.git Cloning https://github.com/Joeclinton1/google-images-download.git to /private/var/folders/m8/1ppphl5160z71yqgl_25lh_00000gn/T/pip-req-build-_t0k9agu Running command git clone -q https://github.com/Joeclinton1/google-images-download.git /private/var/folders/m8/1ppphl5160z71yqgl_25lh_00000gn/T/pip-req-build-_t0k9agu Requirement already satisfied (use --upgrade to upgrade): google-images-download==2.8.0 from git+https://github.com/Joeclinton1/google-images-download.git in /opt/anaconda3/lib/python3.7/site-packages Requirement already satisfied: selenium in /opt/anaconda3/lib/python3.7/site-packages (from google-images-download==2.8.0) (3.141.0) Requirement already satisfied: urllib3 in /opt/anaconda3/lib/python3.7/site-packages (from selenium->google-images-download==2.8.0) (1.25.8) Building wheels for collected packages: google-images-download Building wheel for google-images-download (setup.py) ... done Created wheel for google-images-download: filename=google_images_download-2.8.0-py2.py3-none-any.whl size=15385 sha256=426ebc6202f8004004f799aa0e46284e9b37ddb47e203c126c89e2157f773bc6 Stored in directory: /private/var/folders/m8/1ppphl5160z71yqgl_25lh_00000gn/T/pip-ephem-wheel-cache-wbn6xvwp/wheels/79/5c/d2/2569a4f55ff29b3c4d6b1114d5110a70a79afbf381e6eb3e87 Successfully built google-images-download ERROR: Error checking for conflicts. Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3021, in _dep_map return self.__dep_map File "/opt/anaconda3/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2815, in __getattr__ raise AttributeError(attr) AttributeError: _DistInfoDistribution__dep_map During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3012, in _parsed_pkg_info return self._pkg_info File "/opt/anaconda3/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2815, in __getattr__ raise AttributeError(attr) AttributeError: _pkg_info During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 512, in _warn_about_conflicts package_set, _dep_info = check_install_conflicts(to_install) File "/opt/anaconda3/lib/python3.7/site-packages/pip/_internal/operations/check.py", line 114, in check_install_conflicts package_set, _ = create_package_set_from_installed() File "/opt/anaconda3/lib/python3.7/site-packages/pip/_internal/operations/check.py", line 53, in create_package_set_from_installed package_set[name] = PackageDetails(dist.version, dist.requires()) File "/opt/anaconda3/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2736, in requires dm = self._dep_map File "/opt/anaconda3/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3023, in _dep_map self.__dep_map = self._compute_dependencies() File "/opt/anaconda3/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3032, in _compute_dependencies for req in self._parsed_pkg_info.get_all('Requires-Dist') or []: File "/opt/anaconda3/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3014, in _parsed_pkg_info metadata = self.get_metadata(self.PKG_INFO) File "/opt/anaconda3/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1420, in get_metada ta value = self._get(path) File "/opt/anaconda3/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1616, in _get with open(path, 'rb') as stream: FileNotFoundError: [Errno 2] No such file or directory: '/opt/anaconda3/lib/python3.7/site-packages/google_pasta-0.2.0.dist-info/METADATA'
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/07/04 04:12
2020/07/04 09:25
2020/07/04 12:22
2020/07/04 13:40
2020/07/04 15:43
2020/07/05 01:18
2020/07/05 01:20
2020/07/05 09:07
2020/07/06 12:08