yes  i  run  python3,how to install  flask  in  python3?<br><div><includetail><div> </div><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>发件人:</b> "MRAB"<python@mrabarnett.plus.com>;</div><div><b>发送时间:</b> 2012年1月6日(星期五) 中午11:05</div><div><b>收件人:</b> "python-list"<python-list@python.org>; <wbr></div><div></div><div><b>主题:</b> Re: problem to install  Flask</div></div><div> </div>On 06/01/2012 02:24, 水静流深 wrote:<br>> ~$ sudo easy_install Flask<br>> Searching for Flask<br>> Reading http://pypi.python.org/simple/Flask/<br>> Reading http://github.com/mitsuhiko/flask/<br>> Best match: Flask 0.8<br>> Downloading<br>> http://pypi.python.org/packages/source/F/Flask/Flask-0.8.tar.gz#md5=a5169306cfe49b3b369086f2a63816ab<br>> Processing Flask-0.8.tar.gz<br>> Running Flask-0.8/setup.py -q bdist_egg --dist-dir<br>> /tmp/easy_install-tnoyjj/Flask-0.8/egg-dist-tmp-pq04_a<br>> Traceback (most recent call last):<br>> File "/usr/local/bin/easy_install", line 9, in <module><br>> load_entry_point('distribute==0.6.24', 'console_scripts', 'easy_install')()<br>> File<br>> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",<br>> line 1883, in main<br>> with_ei_usage(lambda:<br>> File<br>> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",<br>> line 1864, in with_ei_usage<br>> return f()<br>> File<br>> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",<br>> line 1887, in <lambda><br>> distclass=DistributionWithoutHelpCommands, **kw<br>> File "/usr/local/lib/python3.2/distutils/core.py", line 148, in setup<br>> dist.run_commands()<br>> File "/usr/local/lib/python3.2/distutils/dist.py", line 917, in run_commands<br>> self.run_command(cmd)<br>> File "/usr/local/lib/python3.2/distutils/dist.py", line 936, in run_command<br>> cmd_obj.run()<br>> File<br>> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",<br>> line 349, in run<br>> self.easy_install(spec, not self.no_deps)<br>> File<br>> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",<br>> line 589, in easy_install<br>> return self.install_item(spec, dist.location, tmpdir, deps)<br>> File<br>> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",<br>> line 619, in install_item<br>> dists = self.install_eggs(spec, download, tmpdir)<br>> File<br>> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",<br>> line 809, in install_eggs<br>> return self.build_and_install(setup_script, setup_base)<br>> File<br>> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",<br>> line 1086, in build_and_install<br>> self.run_setup(setup_script, setup_base, args)<br>> File<br>> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",<br>> line 1075, in run_setup<br>> run_setup(setup_script, args)<br>> File<br>> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/sandbox.py",<br>> line 31, in run_setup<br>> lambda: exec(compile(open(<br>> File<br>> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/sandbox.py",<br>> line 73, in run<br>> return func()<br>> File<br>> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/sandbox.py",<br>> line 33, in <lambda><br>> ).read(), "setup.py", 'exec'),<br>> File "setup.py", line 62<br>> print "Audit requires PyFlakes installed in your system."""<br>> ^<br>> SyntaxError: invalid syntax<br>><br>><br>> what is the matter?<br>><br>The syntax of this line:<br><br>print "Audit requires PyFlakes installed in your system."<br><br>tells me that it's written for Python 2, but this:<br><br>/usr/local/lib/python3.2<br><br>tells me that you're using Python 3.<br><br>In Python 2, "print" is a statement; in Python 3 it's a function.<br>-- <br>http://mail.python.org/mailman/listinfo/python-list<br></div></includetail></div>