[英]In the linux server for production i got error when i try to install mysql-python module
I have a one django
app , And now i want send it to production linux
server but when i try to install mysql-python
module , I got this error : 我有一个
django
应用,现在我想将其发送到生产linux
服务器,但是当我尝试安装mysql-python
模块时,出现此错误:
> error: Setup script exited with error: Unable to find vcvarsall.bat
I know that , I can fix this error with installing visual studio in windows . 我知道,可以在Windows中安装Visual Studio来解决此错误。
but I don't know how can i fix this in linux , and i write this app with python 3.4 . 但是我不知道如何在linux中解决这个问题,我用python 3.4编写了这个程序。
I search all of stackoverflow , but i can't find anything for my problem . 我搜索了所有的stackoverflow,但是找不到我要解决的任何问题。
And i Try C++ compiler for python from microsoft but it can't solve my problem . 我尝试使用Microsoft的python的C ++编译器,但无法解决我的问题。
when I type pip install mysql-python
i got this error : 当我输入
pip install mysql-python
出现此错误:
mysql-python does not support Python 3. Django recommends using mysqlclient . mysql-python不支持Python3。Django建议使用mysqlclient 。
See also Python 3 and MySQL . 另请参见Python 3和MySQL 。
pip install mysqlclient
Please also note that some packages are required. 另请注意,某些软件包是必需的。 Not entirely sure which from the following are specific to mysqlclient, but here is a list of the ones that I install in my servers anyway:
不能完全确定以下哪项是特定于mysqlclient的,但是下面列出了我仍然在服务器中安装的那些:
- build-essential
- python-mysqldb
- libmysqlclient-dev
- python3-dev
What is unclear in your question is the part about the ms compiler when the server is ubuntu. 您的问题中不清楚的是服务器为ubuntu时有关ms编译器的部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.