[英]Where do i enter pip install flask-mysql?
Am implementing a sign up using python & mysql.我正在使用 python 和 mysql 实现注册。
Am getting the error no module named flask.ext.mysql and research implies that i should install flask first.收到错误没有名为flask.ext.mysql的模块,研究表明我应该先安装flask。 They say it's very simple, you simply type
他们说这很简单,你只需输入
pip install flask-mysql pip安装flask-mysql
but where do i type this?但是我在哪里输入这个? In mysql command line for my database or in the python app?
在我的数据库的 mysql 命令行中还是在 python 应用程序中?
Pip is used from the command line.从命令行使用 Pip。 If you are on a Linux/Mac machine, type it from the Terminal.
如果您使用的是 Linux/Mac 计算机,请从终端输入。 Make sure you actually have Pip.
确保你真的有 Pip。
If you don't, use this command (on the Terminal) on linux:如果不这样做,请在 linux 上使用此命令(在终端上):
sudo apt-get install pip
If you are on a Mac, use (in the Terminal):如果您使用的是 Mac,请使用(在终端中):
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
then:然后:
brew install pip
After doing that on Mac/Linux, you can go ahead and execute the command:在 Mac/Linux 上执行此操作后,您可以继续执行命令:
pip install flask-mysql
If you are on a Windows machine, read this instead: How do I install pip on Windows?如果您使用的是 Windows 计算机,请改为阅读: 如何在 Windows 上安装 pip?
Hope this helped!希望这有帮助!
只要您安装了 pip 并且可执行文件位置在您的 PATH 中,您就应该能够在操作系统的命令行(即 CMD/bash/终端)中键入它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.