python-3.x 在Anaconda和Git Bash上安装.sh文件时出错

ktca8awb  于 2022-12-14  发布在  Python
关注(0)|答案(1)|浏览(184)

download_hate_data. sh文件由3个不同的迷因图像文件夹组成。但我不知道如何进一步进行。它要求谷歌图像下载器和Chromedriver。我已经安装了这两个,但仍然,它显示以下错误消息。

GitBash:

Abrar@桌面-3DSQVRQ MINGW 64 ~/数据(主文件)

$ ./download_hate_data.sh
For installation instructions visit https://github.com/hardikvasa/google-images-download
./download_hate_data.sh: line 5: googleimagesdownload: command not found
./download_hate_data.sh: line 6: googleimagesdownload: command not found
./download_hate_data.sh: line 7: googleimagesdownload: command not found

Python提示:

(tensorflow) C:\Users\Abrar\data>bash download_hate_data.sh
For installation instructions visit https://github.com/hardikvasa/google-images-download

Item no.: 1 --> Item name = racist meme
Evaluating...
Looks like we cannot locate the path the 'chromedriver' (use the '--chromedriver' argument to specify the path to the executable.) or google chrome browser is not installed on your machine (exception: argument of type 'NoneType' is not iterable)

Item no.: 1 --> Item name = muslim meme
Evaluating...
Looks like we cannot locate the path the 'chromedriver' (use the '--chromedriver' argument to specify the path to the executable.) or google chrome browser is not installed on your machine (exception: argument of type 'NoneType' is not iterable)

Item no.: 1 --> Item name = jew meme
Evaluating...
Looks like we cannot locate the path the 'chromedriver' (use the '--chromedriver' argument to specify the path to the executable.) or google chrome browser is not installed on your machine (exception: argument of type 'NoneType' is not iterable)```
htzpubme

htzpubme1#

打开命令提示符并导航到脚本文件所在的文件夹。键入Bash script-filename.sh并按Enter键。它将执行脚本,您应该会看到输出,具体取决于文件。

相关问题