我想用python查询我的XAMPP mysql数据库。然而,如果我的机器上没有安装“真正的”mysql数据库,我似乎就不能安装MySQL-python。当我使用easy install安装它时,我得到了以下错误输出
File "setup.py", line 15, in <module>
File "/tmp/easy_install-qQJSHH/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config
File "/tmp/easy_install-qQJSHH/MySQL-
我一直试图为django项目安装mysql,我正在运行osx 10.10和django=1.7,python2.7,以及虚拟env。当我试图运行pip安装MySQL-python时,会出现以下错误:
You are using pip version 6.0.8, however version 7.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
DEPRECATION: --no-install and --no-download are
根据的注释和答案我更新了我的脚本,注释表示更改
{Magento 1.4.0.1}目前我有一个安装程序脚本:
$installer = $this;
$installer->startSetup();
//commented out to use factory method
//$setup = new Mage_Catalog_Model_Resource_Eav_Mysql4_Setup('core_setup');
$setup = Mage::getResourceModel('catalog/setup','core_setup
我不能安装mysql==0.0.2。我能够安装mysql==0.0.3。这个错误看上去。在我看来是工具错误。
(venv) C:\Users\xyz\Envs\>pip install mysql==0.0.2
Collecting mysql==0.0.2
Using cached mysql-0.0.2.tar.gz (1.9 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\xyz\scripts\python.exe' -c 'import sy
我在这里读过一堆关于setuptools的帖子。很多人似乎不太喜欢它。
但是我需要安装MySQL-python-1.2.3。当我这样做的时候,我得到了这个错误:
MySQL-python-1.2.3 X$ python setup.py cleanTraceback (most recent call last):
File "setup.py", line 5, in <module>
from setuptools import setup, Extension
ImportError: No module named se
我正在尝试在centOS服务器上运行Django2.0,我已经安装了python3和pip3,django2.0也安装在virtualenv下,但当我试图在virturlenv下安装mysqlclient时,弹出了一个错误,错误消息如下:
Collecting mysqlclient
Using cached mysqlclient-1.3.12.tar.gz
Complete output from command python setup.py egg_info:
/bin/sh: mysql_config: command not found
Tracebac