Python包在Ubuntu中不可用



我正在尝试同时运行多个python文件。显然,最好的方法是在Ubuntu中使用bash文件。所以我已经开始设置了,并安装了所有必要的软件包。但我得到了一个名为"谷歌"的包,因为我需要from google.cloud.sql.connector import connector才能运行。但当我键入sudo apt install google时,它会返回

Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package google

请注意,如果我没有误解的话,运行apt-cache search --names-only '^google.*'会得到标题中包含"谷歌"的可用软件包列表。这会返回一个包含许多包的长列表,但没有一个包只是简单地命名为谷歌。

有人知道我怎样才能访问这个模块吗?

键入此命令:

pip install cloud-sql-python-connector

但由于该项目处于测试版,因此建议使用虚拟信息。模式详细信息:

  • 云SQL Python
  • Python虚拟环境和包

最新更新