Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python': 0.08; 'url:pypi': 0.08; 'from:addr:python': 0.09; 'lambda:': 0.09; 'url:github': 0.09; 'url:packages': 0.09; 'skip:" 40': 0.15; '"print"': 0.16; 'f()': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'received:84.92': 0.16; 'received:84.92.122': 0.16; 'received:84.92.122.60': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'reply-to:addr:python-list': 0.16; 'skip:" 100': 0.16; 'skip:/ 50': 0.16; 'statement;': 0.16; 'subject:install': 0.16; 'sudo': 0.16; 'syntaxerror:': 0.16; 'system."': 0.16; 'url:gz#md5': 0.16; 'url:tar': 0.16; 'syntax': 0.16; 'this:': 0.16; 'wrote:': 0.18; 'subject:problem': 0.19; 'written': 0.20; '(most': 0.21; 'tells': 0.21; 'header:In-Reply- To:1': 0.22; 'traceback': 0.24; 'invalid': 0.28; 'skip:" 30': 0.28; "skip:' 10": 0.29; 'print': 0.29; 'args)': 0.30; 'line:': 0.30; 'installed': 0.31; 'skip:l 30': 0.32; 'header:User-Agent:1': 0.33; 'to:addr:python-list': 0.34; 'received:84': 0.34; 'function.': 0.34; 'last):': 0.34; 'reply-to:addr:python.org': 0.34; 'running': 0.35; 'url:python': 0.36; 'file': 0.36; 'but': 0.37; 'run': 0.37; 'using': 0.38; 'skip:d 40': 0.39; 'processing': 0.39; 'url:org': 0.39; 'url:source': 0.39; "it's": 0.40; 'setup': 0.40; 'to:addr:python.org': 0.40; 'your': 0.61; '31,': 0.64; 'header:Reply-To:1': 0.71; 'reply-to:no real name:2**0': 0.72; 'url:f': 0.73; 'subject: ': 0.74; '0.8': 0.84; 'easy_install': 0.84; 'download,': 0.91 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=J8QoHXbS c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=9jsOeB20M3cA:10 a=OUOv7kDek9cA:10 a=IkcTkHD0fZMA:10 a=8AHkEIZyAAAA:8 a=NEAV23lmAAAA:8 a=bveHqvlnHqE58yFfNXQA:9 a=Q9krtHpGCV9-Qacb0dIA:7 a=QEXdDO2ut3YA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 X-AUTH: mrabarnett:2500 Date: Fri, 06 Jan 2012 03:05:03 +0000 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: problem to install Flask References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: python-list@python.org List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 87 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1325819069 news.xs4all.nl 6853 [2001:888:2000:d::a6]:34186 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18578 On 06/01/2012 02:24, 水静流深 wrote: > ~$ sudo easy_install Flask > Searching for Flask > Reading http://pypi.python.org/simple/Flask/ > Reading http://github.com/mitsuhiko/flask/ > Best match: Flask 0.8 > Downloading > http://pypi.python.org/packages/source/F/Flask/Flask-0.8.tar.gz#md5=a5169306cfe49b3b369086f2a63816ab > Processing Flask-0.8.tar.gz > Running Flask-0.8/setup.py -q bdist_egg --dist-dir > /tmp/easy_install-tnoyjj/Flask-0.8/egg-dist-tmp-pq04_a > Traceback (most recent call last): > File "/usr/local/bin/easy_install", line 9, in > load_entry_point('distribute==0.6.24', 'console_scripts', 'easy_install')() > File > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py", > line 1883, in main > with_ei_usage(lambda: > File > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py", > line 1864, in with_ei_usage > return f() > File > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py", > line 1887, in > distclass=DistributionWithoutHelpCommands, **kw > File "/usr/local/lib/python3.2/distutils/core.py", line 148, in setup > dist.run_commands() > File "/usr/local/lib/python3.2/distutils/dist.py", line 917, in run_commands > self.run_command(cmd) > File "/usr/local/lib/python3.2/distutils/dist.py", line 936, in run_command > cmd_obj.run() > File > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py", > line 349, in run > self.easy_install(spec, not self.no_deps) > File > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py", > line 589, in easy_install > return self.install_item(spec, dist.location, tmpdir, deps) > File > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py", > line 619, in install_item > dists = self.install_eggs(spec, download, tmpdir) > File > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py", > line 809, in install_eggs > return self.build_and_install(setup_script, setup_base) > File > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py", > line 1086, in build_and_install > self.run_setup(setup_script, setup_base, args) > File > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py", > line 1075, in run_setup > run_setup(setup_script, args) > File > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/sandbox.py", > line 31, in run_setup > lambda: exec(compile(open( > File > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/sandbox.py", > line 73, in run > return func() > File > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/sandbox.py", > line 33, in > ).read(), "setup.py", 'exec'), > File "setup.py", line 62 > print "Audit requires PyFlakes installed in your system.""" > ^ > SyntaxError: invalid syntax > > > what is the matter? > The syntax of this line: print "Audit requires PyFlakes installed in your system." tells me that it's written for Python 2, but this: /usr/local/lib/python3.2 tells me that you're using Python 3. In Python 2, "print" is a statement; in Python 3 it's a function.