如何设置一个AppVeyor构建,它使用Server、MySQL和Python的不同组合运行多个作业?
假设我想运行以下组合:
Server 2012和Python2.7
Server 2012和Python3.4
Server 2014和Python2.7
Server 2014和Python3.4
Server 2016和Python2.7
Server 2016和Python3.6
MySQL 5.7和Python2.7
MySQL 5.7和Python3.6
我将如何编写我的appveyor.yml文件?到目前为止,
正在尝试安装mysql-python。出现以下错误。我已经安装了mysql和pythond。我们将非常感谢您的帮助。
[root@uu include]# easy_install mysql-python
Searching for mysql-python
Reading http://cheeseshop.python.org/pypi/mysql-python/
Couldn't find index page for 'mysql-python' (maybe misspelled?)
Scanning index of all packages (this
我试图安装MySQL库,以便使用Django进行开发,但总是以不同的方式显示任何错误:
与PIP:
rigo:~ rigobcastro$ sudo pip install MySQL-Python
Downloading/unpacking MySQL-Python
Could not fetch URL https://pypi.python.org/simple/MySQL-Python/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:503: error
mySQL似乎已经启动并运行得很好。但是,当我试图将MySQLdb导入python时,我会得到一个ImportError: ... Expected in: flat namespace。我认为这与python有两个不同的版本有关(两个不同的目录,同一个版本)。
操作系统: Mac 10.6.8
$ ls /Library/Frameworks/Python.framework/Versions/
7.2 Current
$ which python
/Library/Frameworks/Python.framework/Versions/Current/bin/python
$ ech
当我试图在一个虚拟环境(pip install MySQL-python)中安装MySQL-python时,我得到了以下错误(截断到最后几行)
_mysql.c: At top level:
_mysql.c:2551: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_mysql.c:2558: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:2565: error: ‘_mysql_ConnectionO
我正在尝试用conda安装MySQL-python。我得到以下错误:
> conda install MySQL-python
Fetching package metadata .........
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- mysql-python -> python 2.7* -> openssl 1.0.1*
- python 3.6*
Use "co
import MySQLdb
通向
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.macosx-10.13-intel/egg/MySQLdb/__init__.py", line 19, in <module>
File "build/bdist.macosx-10.13-intel/egg/_mysql.py", line 7, in <module>
我已经成功地将MySQL-python安装到我的虚拟环境中,PyCharm可以导入它这一事实证实了这一点。然而,我正在收到这样的信息:
ImportError: this is MySQLdb version (1, 2, 4, 'beta', 4), but _mysql is version (1, 2, 5, 'final', 1)
我的安装方法是:
在终端激活我的静脉
export PATH=$PATH:/usr/local/mysql/bin
export CFLAGS=-Qunused-arguments export CPPFLAGS=