簡體   English   中英

無法在pycharm中安裝BeautifullSoup

[英]Unable to install BeautifullSoup in pycharm

DEPRECATION: --no-install, --no-download, --build, and --no-clean are deprecated.  See https://github.com/pypa/pip/issues/906.
Downloading/unpacking BeautifulSoup==3.2.1
  Downloading BeautifulSoup-3.2.1.tar.gz
  Running setup.py (path:/tmp/pycharm-packaging0.tmp/BeautifulSoup/setup.py) egg_info for package BeautifulSoup
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pycharm-packaging0.tmp/BeautifulSoup/setup.py", line 22
        print "Unit tests have failed!"
                                      ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pycharm-packaging0.tmp/BeautifulSoup/setup.py", line 22

    print "Unit tests have failed!"

                                  ^

SyntaxError: invalid syntax

----------------------------------------
Cleaning up...

Command python setup.py egg_info failed with error code 1 in /tmp/pycharm-packaging0.tmp/BeautifulSoup
Storing debug log for failure in /home/jatin/.pip/pip.log

發生這種情況是因為您嘗試在python3中安裝BeautifulSoup,只有在使用python2的情況下,該方法才有效。

為了在python3中安裝它,請使用pip install beautifulsoup4

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM