1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
*** installing via pip install ***
(converters)ks@ks-HP-Compaq-dc7800p-Convertible-Minitower:~/python/ged/converters/converters$ sudo pip install -E default/ MySQL-python
Creating new virtualenv environment in default/
New python executable in default/bin/python
Installing distribute......................................................................................................................................... Installing distribute...done.............
Installing pip...done........
Downloading/unpacking MySQL-python
Downloading MySQL-python-1.2.3.tar.gz (70Kb): 70Kb downloaded
Running setup.py egg_info for package MySQL-python
warning: no files found matching 'MANIFEST'
warning: no files found matching 'ChangeLog'
warning: no files found matching 'GPL'
Installing collected packages: MySQL-python
Running setup.py install for MySQL-python
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-i686-2.7/_mysql.o -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX
In file included from _mysql.c:36:0:
/usr/include/mysql/my_config.h:1088:0: предупреждение: «HAVE_WCSCOLL» переопределён [по умолчанию включена]
/usr/include/python2.7/pyconfig.h:887:0: замечание: это расположение предыдущего определения
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions build/temp.linux-i686-2.7/_mysql.o -L/usr/lib/mysql -lmysqlclient_r -o build/lib.linux-i686-2.7/_mysql.so
warning: no files found matching 'MANIFEST'
warning: no files found matching 'ChangeLog'
warning: no files found matching 'GPL'
Successfully installed MySQL-python
Cleaning up...
*** now try to find it in our libs ***
(converters)ks@ks-HP-Compaq-dc7800p-Convertible-Minitower:~/python/ged/converters/converters$ pip freeze
distribute==0.6.19
wsgiref==0.1.2
*** so, may be this will work? ***
(converters)ks@ks-HP-Compaq-dc7800p-Convertible-Minitower:~/python/ged/converters/converters$ python
Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named MySQLdb

Яндекс.Метрика