python-2.7.11
# mac os
brew link openssl --force
./configure --prefix=$HOME/opt/python-2.7.11 --enable-shared
make -j4
# check make output
make install
python-3.5.1
# mac os
brew link openssl --force
brew install xz
./configure --prefix=$HOME/opt/python-3.5.1 --enable-shared
make -j4
# check make output
make install
PyQt for python2.7
注意替换下边路径中的用户名
# mac os
brew install pyqt
mkdir -p ~/opt/pyqt-py2-site-packages
cd ~/opt/pyqt-py2-site-packages
ln -sf /usr/local/lib/python2.7/site-packages/PyQt4
ln -sf /usr/local/lib/python2.7/site-packages/sip.so
ln -sf /usr/local/lib/python2.7/site-packages/sipconfig.py
ln -sf /usr/local/lib/python2.7/site-packages/sipdistutils.py
mkdir -p /Users/chendx/.local/lib/python2.7/site-packages
echo 'import site; site.addsitedir("/Users/chendx/opt/pyqt-py2-site-packages")' >> /Users/chendx/.local/lib/python2.7/site-packages/pyqt.pth
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。