bha*_*waj 35 python beautifulsoup python-3.x
我在Windows 8计算机上安装了Python 3.5.我还安装了Pycharm Community Version 5.0.4.我无法通过Pycharm中的设置选项安装BeautifulSoup模块.我在Pycharm中收到以下错误:
Collecting BeautifulSoup
Using cached BeautifulSoup-3.2.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Kashyap\AppData\Local\Temp\pycharm-packaging0.tmp\BeautifulSoup\setup.py", line 22
print "Unit tests have failed!"
^
SyntaxError: Missing parentheses in call to 'print'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Kashyap\AppData\Local\Temp\pycharm-packaging0.tmp\BeautifulSoup
Run Code Online (Sandbox Code Playgroud)
安装的Python文件夹的路径是3.5.1(C:\ Program Files(x86)\ Python35-32\python.exe)
Mar*_*ers 49
您正在尝试安装BeautifulSoup 3,它不兼容Python 3.正如Pycharm错误窗口所解释的那样:
确保使用此软件包支持的Python版本.目前您使用的是Python 3.5.
但是,您想要安装BeautifulSoup 4 ; 该系列的项目名称已更改为beautifulsoup4.BeautifulSoup 4已经出现了几年,并支持Python 3.
使用电流更大的 AnacondaBeautifulSoup4是最简单的。
conda install BeautifulSoup4
Run Code Online (Sandbox Code Playgroud)
或者
pip3 install BeautifulSoup4
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
26582 次 |
| 最近记录: |