2

有没有办法通过 pip 安装 xGoogle?如果是这样,我该怎么做?我已经尝试过: $ pip install xGoogle 如果没有使用pip安装的方法,我可以通过easy-install来安装吗?我正在为我的操作系统使用 Windows 10。

4

3 回答 3

5

您可以直接从其存储库安装它:

$ git clone https://github.com/pkrumins/xgoogle
$ cd xgoogle
$ sudo python setup.py install
于 2015-11-25T18:12:28.987 回答
0

在我的情况下,链接的答案没有帮助。

在行中,xgoogle、GoogleSearch和from xgoogle.search import GoogleSearch, SearchErrorSearchError requiredInstall package xgoogle和for ,但是在命令执行期间发生了错误:Install package GoogleSearchRename referenceSearchErrorpip install xgoogle

Error: Could not find a version that satisfies the requirement xgoogle (from versions: none)

命令输出:

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. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
ERROR: Could not find a version that satisfies the requirement xgoogle (from versions: none)
ERROR: No matching distribution found for xgoogle

我从作者的网页上下载了 xgoogle.zip,解压缩并放入我的文件夹中。它适用于这个项目。~/PycharmProjects/myproject/

但是,尽管如此,xgoogle 包现在已经了。

于 2020-02-04T19:47:30.823 回答
-1

它应该是:

$ git clone https://github.com/pkrumins/xgoogle
$ cd xgoogle
$ sudo python setup.py install
于 2017-01-13T08:49:24.383 回答