我在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)
我在Node.js中遇到过这种语法.任何人都可以解释[,Node.js/JavaScript中的内容吗?
我见过的语法示例.
assert(value[, message])const name1 = value1 [, name2 = value2 [, ... [, nameN = valueN]]];