PyCharm 笔记

安装

linux 安装请参考官方文档

$ sudo mv pycharm-professional-4.0.1.tar.gz /opt/
$ cd /opt/
$ sudo tar -xzvf /opt/pycharm-professional-4.0.1.tar.gz
$ sudo rm pycharm-professional-4.0.1.tar.gz
$ sudo ln -s /opt/pycharm-4.0.1/bin/pycharm.sh /usr/bin/pycharm

杂乱问题集

bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

当试图用 BeautifulSoup 解析网页为 lxml 格式时,提示如下(系统 OS X EI Capitan 10.11.6 (15G31)):

Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

可能是缺少相应的解释环境,只要打开 Preferences -> Project: XXX(XXX 是工程名)->Project Interpreter 改变解释器,或添加需要的 Packages

你可能感兴趣的:(PyCharm 笔记)