有没有办法通过点播安装xGoogle?如果是这样,我该怎么做?我已经尝试过了:
$ pip install xGoogle
如果没有办法使用pip进行安装,我可以通过简易安装来实现吗?
我正在使用Windows 10作为我的操作系统。
答案 0 :(得分:3)
您可以直接从repository进行安装:
$ git clone https://github.com/pkrumins/xgoogle
$ cd xgoogle
$ sudo python setup.py install
答案 1 :(得分:0)
应该是:
$ git clone https://github.com/pkrumins/xgoogle
$ cd xgoogle
$ sudo python setup.py install
答案 2 :(得分:0)
在我的情况下,链接的答案没有帮助。
在from xgoogle.search import GoogleSearch, SearchError
行中,Install package xgoogle
需要Install package GoogleSearch
,Rename reference
和SearchError
的xgoogle,GoogleSearch和SearchError,但在pip 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下载了author's web page,将其提取并放入了我的~/PycharmProjects/myproject/
文件夹中。它适用于该项目。
但是,xgoogle软件包现在是dead。