随笔分类 -  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 阅读(112) 评论(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 阅读(277) 评论(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 阅读(237) 评论(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 阅读(157) 评论(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 阅读(523) 评论(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 阅读(163) 评论(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 阅读(582) 评论(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 阅读(1137) 评论(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 阅读(306) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 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 1 2 3 4 5
点击右上角即可分享
微信分享提示