【发布时间】:2018-05-11 10:54:37
【问题描述】:
我正在尝试使用 Matrix creator 在 Raspberry Pi 3 上设置 Google 助手。 在安装 Google Assistant SDK guide 时无法通过此命令:
python -m pip install --upgrade google-auth-oauthlib[工具] 它返回
google-assistant-library 1.0.0 has requirement argparse<2,>=1.4.0, but you'll have argparse 1.2.1 which is incompatible.
我在 virtualenv --no-site-packages 中。
但是,当我尝试使用以下命令升级 argparse 时,我得到了
无法卸载“argparse”。找不到要卸载的文件。成功安装argparse-1.4.0
pip install --upgrade argparse
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting argparse Using cached https://files.pythonhosted.org/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl Installing collected packages: argparse Found existing installation: argparse 1.2.1
Not uninstalling argparse at /usr/lib/python2.7, outside environment /home/pi/ga
Can't uninstall 'argparse'. No files were found to uninstall. Successfully installed argparse-1.4.0
【问题讨论】:
-
你是在虚拟环境中运行这个命令吗?
-
是的,我在没有站点包的虚拟环境中运行
-
如果你运行 pip freeze,你会看到哪个版本的 argparse?
标签: python raspberry-pi google-assistant-sdk