里边还有各种空间的例子, 好用.
使用Pycharm安装Python第三方库
http://blog.csdn.net/qiannianguji01/article/details/50397046 打开pycharm,点击File,再点击settings
点击settings之后再点击project下面的project Interpreter
点击上面界面右上角的“+”将会出现如下界面:然后在搜索框中搜索需要安装的第三方库(此处搜索requests)然后点击界面左下角的Install Package进行安装即可。
安装 python3 + GTK3.0
shell下执行
sudo apt build-dep pygobject
sudo apt install autoconf-archive
git clone https://git.gnome.org/browse/pygobject
cd pygobject
#./autogen.sh
./autogen.sh --with-python=python3
./configure --with-python=python3
make -j8;
make check
把整个 gi 目录拷贝到 /usr/local/lib/python3.6/dist-packages/
sudo cp gi /usr/local/lib/python3.6/dist-packages/ -fra
验证成功与否
python3
>>> import gi
>>> gi.require_version('Gtk', '3.0')
>>> from gi.repository import Gtk
>>> 成功