pip install readline
apt-get install zlib1g-dev libjpeg-dev libpng12-dev libfreetype6-dev
freetype2-demos mysql-client libmysqlclient-dev python-dev python-mysqldb
python-pip
ln -s /usr/lib/`uname -i`-linux-gnu/libfreetype.so /usr/lib/
ln -s /usr/lib/`uname -i`-linux-gnu/libjpeg.so /u...
在pycharm中打开别人的项目时,编辑器中经常出现django模块无法加载的提示,但是系统中已经安装django了,只需要修改下面的设置即可解决:
Settings -> Project Settings -> Python Integrated Tools,右边的第一个选项 Package requirements file 留空即可
只需要在gzip_static on下面加一行:
gzip_http_version 1.0;
vi /etc/mysql/my.cnf
在[mysqld]下面加入下面两行:
#默认字符集为utf8
default-character-set=utf8
#设定连接mysql数据库时使用utf8编码,以让mysql数据库为utf8运行
init_connect='SET NAMES utf8'
cd #返回用户目录
vi .hgrc
username = gs412 <gs412@126.com>
verbose = False
editor = gvim -f
[paths]
default = https://user:pass@repo.url.com/hg/TMS
[hostfingerprints]
repo.url.com = bb:95:72:42:ef:9f:c6:ec:77:1e:b7:f4:b4:1e:3c:f2:b1:49:29:63
先添加红色部分,然后运行命令
hg p...
Settings -> IDE Settings -> Editor -> Highlight on Caret Movement -> Highlight useages of element at caret(选中该项)