简体   繁体   English

如何安装 TinyDB?

[英]How to install TinyDB?

I am trying to install TinyDB as I need to use it for a python program.我正在尝试安装 TinyDB,因为我需要将它用于 python 程序。 I have tried following tutorials that suggest installing it via the command prompt.我已经尝试过建议通过命令提示符安装它的教程。 However, whenever I type 'python', it says ''python' is not recognized as an internal or external command, operable program or batch file.'但是,每当我输入“python”时,它都会显示“python”不是内部或外部命令、可运行程序或批处理文件。 I have tried adding 'C:\python37-32\' to the end of the PATH variable but it has made no difference.我尝试将 'C:\python37-32\' 添加到 PATH 变量的末尾,但没有任何区别。 Does anyone have any suggestions?有没有人有什么建议?

  1. Check that python.exe is actually in C:\python37-32\检查python.exe实际上是在C:\python37-32\
  2. Check if PATH is set correctly in your cmd , type echo %PATH% , if not, try rebooting your system检查您的cmd中的PATH是否设置正确,输入echo %PATH% ,如果没有,请尝试重新启动系统

Once the directory where python.exe is correctly added to PATH, you should be able to runpython.exe的目录正确添加到 PATH 后,您应该能够运行

 python -m pip install tinydb

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM