Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python -bash:image scraper:未找到命令_Python_Pip - Fatal编程技术网

Python -bash:image scraper:未找到命令

Python -bash:image scraper:未找到命令,python,pip,Python,Pip,我使用pip安装ImageScraper安装了图像刮板。 如果我再次这样做,则输出如下: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More d

我使用
pip安装ImageScraper
安装了图像刮板。 如果我再次这样做,则输出如下:

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: ImageScraper in ./Library/Python/2.7/lib/python/site-packages (2.0.7)
Requirement already satisfied: future>=0.14.3 in ./Library/Python/2.7/lib/python/site-packages (from ImageScraper) (0.18.2)
Requirement already satisfied: setproctitle>=1.1.8 in ./Library/Python/2.7/lib/python/site-packages (from ImageScraper) (1.1.10)
Requirement already satisfied: SimplePool in ./Library/Python/2.7/lib/python/site-packages (from ImageScraper) (0.1)
Requirement already satisfied: requests>=2.1.0 in /Library/Python/2.7/site-packages (from ImageScraper) (2.18.4)
Requirement already satisfied: lxml>=3.2.3 in ./Library/Python/2.7/lib/python/site-packages (from ImageScraper) (4.6.1)
Requirement already satisfied: idna<2.7,>=2.5 in /Library/Python/2.7/site-packages (from requests>=2.1.0->ImageScraper) (2.6)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Library/Python/2.7/site-packages (from requests>=2.1.0->ImageScraper) (3.0.4)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /Library/Python/2.7/site-packages (from requests>=2.1.0->ImageScraper) (1.22)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Python/2.7/site-packages (from requests>=2.1.0->ImageScraper) (2017.11.5)
弃用:Python 2.7在2020年1月1日结束了它的生命。请升级Python,因为不再维护Python 2.7。PIP21.0将在2021年1月放弃对Python2.7的支持。有关pip中Python 2支持的更多详细信息,请访问https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0将取消对该功能的支持。
默认为用户安装,因为普通站点包不可写
已满足要求:ImageScraper in./Library/Python/2.7/lib/Python/site-packages(2.0.7)
已满足要求:future>=0.14.3 in./Library/Python/2.7/lib/Python/site-packages(来自ImageScraper)(0.18.2)
已满足要求:setproctitle>=1.1.8 in./Library/Python/2.7/lib/Python/site-packages(来自ImageScraper)(1.1.10)
已满足要求:SimplePool in./Library/Python/2.7/lib/Python/site-packages(来自ImageScraper)(0.1)
已满足要求:请求>=2.1.0 in/Library/Python/2.7/site-packages(来自ImageScraper)(2.18.4)
已满足要求:lxml>=3.2.3 in./Library/Python/2.7/lib/Python/site-packages(来自ImageScraper)(4.6.1)
已满足要求:idna=2.5 in/Library/Python/2.7/site-packages(来自请求>=2.1.0->ImageScraper)(2.6)
已满足要求:chardet=3.0.2 in/Library/Python/2.7/site-packages(来自请求>=2.1.0->ImageScraper)(3.0.4)
已满足要求:urllib3=1.21.1 in/Library/Python/2.7/site-packages(来自请求>=2.1.0->ImageScraper)(1.22)
已满足要求:Certfi>=2017.4.17 in/Library/Python/2.7/site-packages(来自请求>=2.1.0->ImageScraper)(2017.11.5)
但当我这样做的时候:

图像刮板-h

我得到:

-bash:image scraper:未找到命令


我能做什么?

这能回答你的问题吗<代码>pip显示--文件ImageScraper,查看
图像刮刀
的安装位置,如果目录位于
$PATH
@phd中,它会告诉我它位于
/Users/doekewartena/Library/Python/2.7/lib/Python/site packages
中,但是如果我先将cd放在那里,然后再执行
图像刮刀-h
,那么我仍然会有相同的错误。试试看
/Users/doekewartena/Library/Python/2.7/bin/
@phd那里有一个可执行文件,但我只能用
/image scraper
启动它,无论如何我不需要“/”前缀?