To install MySQLdb module in python, download it from MySQLdb Download page Finally, execute the following command to configure mysqldb with python: [code] $ tar xfz MySQL-python-1.2.4b4.tar.gz $ cd MySQL-python-1.2.4b4 $ # edit site.cfg if necessary $ python setup.py build $ sudo python setup.py install # or su first [/code]
March 2013 archive
Permanent link to this article: https://blog.openshell.in/2013/03/how-to-use-multi-line-comment-in-python/
Permanent link to this article: https://blog.openshell.in/2013/03/how-to-install-mysqldb-module-in-python/
Mar 14
Fatal error: Python.h: No such file or Directory
When i tried to build mysql connector for python got the below error: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,4,’beta’,4) -D__version__=1.2.4b4 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -DBIG_JOINS=1 -fno-strict-aliasing -g _mysql.c:29:20: fatal error: Python.h: No such file or directory compilation terminated. error: command ‘gcc’ failed with exit status 1 Where can …
Permanent link to this article: https://blog.openshell.in/2013/03/fatal-error-python-h-no-such-file-or-directory/
Mar 14
How to install python in ubuntu
Install python in ubuntu machine by follow the below steps, Which helps to install all necessary packages needed. 1) To be able to compile Python Source, you will need few packages. Open terminal and execute this command [code]sudo apt-get install build-essential gcc libncursesw5-dev libreadline-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev[/code] 2) Then execute this command …
Permanent link to this article: https://blog.openshell.in/2013/03/how-to-install-python-in-ubuntu/
Mar 10
Install Java plugin in mozilla firefox
Install Java plugin in mozila firefox Go to the download page at java.com. Click the Free Java Download button. Click the Agree and Start Free Download button to download the Java installer to your computer. After the download is complete, close Firefox. Open the file you downloaded to start the Java installation. For more information …
Permanent link to this article: https://blog.openshell.in/2013/03/install-java-plugin-in-mozilla-firefox/
- 1
- 2
Mar 15
How to use multi-line comment in python?
March 15, 2013
Python doesn’t have a multi-line comment. Most people who want to do a multi-line comment just use triple quoted strings. [code] ”’ for example you could do something like this as a multi-line comment ”’ [/code] But personally, I will do it like this: [code] # This # is # a # multi-line # comment …
Continue reading