随笔分类 -  Python

django models.
摘要:1. make changes on ../models.py2. python manage.py makemigrations3.python manage.py migrate(syncdb) 阅读全文

posted @ 2015-03-07 21:20 jmbkeyes 阅读(118) 评论(0) 推荐(0)

Centos6.5 install Python2.7 & django & mysql & apache
摘要:#! /bin/bash#su root#get python2.7wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz#install pythontar zxvf Python-2.7.9.tgzcd Python-2.7.9... 阅读全文

posted @ 2015-03-05 22:57 jmbkeyes 阅读(288) 评论(0) 推荐(0)

error: Unable to find vcvarsall.bat while install python library by pip install or python setup.py install.
摘要:Python 2.7 会搜索 Visual Studio 2008. 如果你电脑上没有这个版本的话,比如只有: 1.Visual Studio 2010,在cmd里面执行:SET VS90COMNTOOLS=%VS100COMNTOOLS%2. Visual Studio 2012 的话:SET V... 阅读全文

posted @ 2015-01-15 13:12 jmbkeyes 阅读(243) 评论(0) 推荐(0)

PIL安装记录,编译支持jpeg png
摘要:PIL是python理想的图片处理module,但是想要良好的支持各种图片,还需要检查一下几步,否则会提示:IOError: decoder jpeg not available之类的。我的环境:Linux mint 11 amd64 / Python2.7第一步:安装zlib pngfreetyp... 阅读全文

posted @ 2014-08-27 22:40 jmbkeyes 阅读(167) 评论(0) 推荐(0)

install pip on windows
摘要:Download Setuptools and pipYou can downloadpipfromgithubSetuptoolsfrombitbucketAnd confirm this aren’t harmful.Open ConsoleAs an Admin, just open cons... 阅读全文

posted @ 2014-08-20 23:39 jmbkeyes 阅读(536) 评论(0) 推荐(0)

error: Unable to find vcvarsall.bat - when install PIL
摘要:For Windows installations:While running setup.py for package installations, Python 2.7 searches for an installed Visual Studio 2008. You can trick Pyt... 阅读全文

posted @ 2014-08-20 23:32 jmbkeyes 阅读(167) 评论(0) 推荐(0)

use eclipse and pydev to perform remote debug python app.
摘要:1. Environment Debug server: eclipse + pydev Remote Server: a. copyeclipse/plugins/org.python.pydev_x.x.x/pysrc to python path(like ..../python... 阅读全文

posted @ 2013-01-08 13:50 jmbkeyes 阅读(596) 评论(0) 推荐(0)

pycharm remote debug
摘要:1. Edit Configurations >> click "+" button and select "Python Remote Debug" >> set debug server name, debug server ip(that remote server can access it... 阅读全文

posted @ 2013-01-07 17:14 jmbkeyes 阅读(1145) 评论(0) 推荐(0)

python access mssql server.
摘要:1. use pyodbc.(http://code.google.com/p/pyodbc/)1.1 access database directly connection = pyodbc.connect('DRIVER={SQL SERVER};SERVER=local;DATABASE=D... 阅读全文

posted @ 2012-12-28 23:16 jmbkeyes 阅读(313) 评论(0) 推荐(0)

导航