尝试安装 Google Cloud Platform 并收到此警告消息
This python installation does not have sqlite3 library. Please upgrade your set of dependencies to include sqlite3 as otherwise gcloud commands will stop working in near future.
我通过在终端中输入 sqlite3 来检查我是否安装了 sqlite3,我得到了这个
Last login: Sun Jul 30 17:13:58 on ttys000
J-2:~ j$ sqlite3
SQLite version 3.12.2 2016-04-18 17:30:31
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> .quit
我无法弄清楚缺少什么。提前致谢。
最佳答案
这意味着您的设置工具未更新并且可能已过时。
您可以尝试通过以下方式解决此问题:
pip install --upgrade setuptools
如果这不起作用,试试这个:
sudo apt-get install python3.6-dev libmysqlclient-dev libpcap-dev libpq-dev
我希望它能奏效。干杯!
关于python安装没有sqlite3库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45398344/