美文网首页
PyCharm 笔记

PyCharm 笔记

作者: 苏尚君 | 来源:发表于2016-07-23 21:15 被阅读148次

    安装

    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 笔记

          本文链接:https://www.haomeiwen.com/subject/txksrttx.html