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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python': 0.08; 'url:pypi': 0.08; 'lambda:': 0.09; 'reply-to:addr:comp.lang.python': 0.09; 'to:addr:comp.lang.python': 0.09; 'url:github': 0.09; 'url:packages': 0.09; 'skip:" 40': 0.15; '"print"': 0.16; '8bit%:71': 0.16; 'debugged': 0.16; 'f()': 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; 'cc:addr:python-list': 0.16; 'syntax': 0.16; 'this:': 0.16; 'language': 0.17; 'wrote:': 0.18; 'subject:problem': 0.19; 'cc:no real name:2**0': 0.20; 'written': 0.20; 'programming': 0.21; '(most': 0.21; 'linux,': 0.21; 'tells': 0.21; 'header:In-Reply-To:1': 0.22; 'cc:2**0': 0.24; 'traceback': 0.24; 'code': 0.25; 'module': 0.26; 'windows': 0.26; 'invalid': 0.28; 'skip:" 30': 0.28; "skip:' 10": 0.29; 'print': 0.29; 'cc:addr:python.org': 0.29; 'args)': 0.30; 'line:': 0.30; 'url:library': 0.31; 'installed': 0.31; 'skip:l 30': 0.32; 'header :User-Agent:1': 0.33; 'from:addr:googlemail.com': 0.34; 'received:209.85.212': 0.34; 'function.': 0.34; 'last):': 0.34; 'running': 0.35; 'operating': 0.35; 'url:python': 0.36; 'file': 0.36; 'but': 0.37; 'run': 0.37; 'received:google.com': 0.37; 'using': 0.38; 'cross': 0.38; 'received:209.85': 0.38; 'skip:d 40': 0.39; 'url:docs': 0.39; 'processing': 0.39; 'url:org': 0.39; 'url:source': 0.39; "it's": 0.40; 'setup': 0.40; 'received:209': 0.40; 'your': 0.61; 'techniques': 0.64; '31,': 0.64; 'header :Reply-To:1': 0.71; 'reply-to:no real name:2**0': 0.72; 'url:f': 0.73; 'reply-to:addr:googlegroups.com': 0.74; 'subject: ': 0.74; '0.8': 0.84; 'easy_install': 0.84; 'download,': 0.91; 'received:209.85.212.56': 0.91; 'received:mail- vw0-f56.google.com': 0.91; 'skip:2 50': 0.91 Newsgroups: comp.lang.python Date: Fri, 6 Jan 2012 00:01:03 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=1.168.129.131; posting-account=5JdMBQoAAABHnS4mjpqEzxnmWtgiiVNw References: User-Agent: G2/1.0 X-Google-Web-Client: true MIME-Version: 1.0 Subject: Re: problem to install Flask From: 88888 Dihedral To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: comp.lang.python@googlegroups.com List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 116 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1325836867 news.xs4all.nl 6954 [2001:888:2000:d::a6]:49884 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18589 MRAB=E6=96=BC 2012=E5=B9=B41=E6=9C=886=E6=97=A5=E6=98=9F=E6=9C=9F=E4=BA=94U= TC+8=E4=B8=8A=E5=8D=8811=E6=99=8205=E5=88=8603=E7=A7=92=E5=AF=AB=E9=81=93= =EF=BC=9A > On 06/01/2012 02:24, =E6=B0=B4=E9=9D=99=E6=B5=81=E6=B7=B1 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=3Da= 5169306cfe49b3b369086f2a63816ab > > 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=3D=3D0.6.24', 'console_scripts', 'easy_ins= tall')() > > File > > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/set= uptools/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/set= uptools/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/set= uptools/command/easy_install.py", > > line 1887, in > > distclass=3DDistributionWithoutHelpCommands, **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_com= mands > > self.run_command(cmd) > > File "/usr/local/lib/python3.2/distutils/dist.py", line 936, in run_com= mand > > cmd_obj.run() > > File > > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/set= uptools/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/set= uptools/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/set= uptools/command/easy_install.py", > > line 619, in install_item > > dists =3D self.install_eggs(spec, download, tmpdir) > > File > > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/set= uptools/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/set= uptools/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/set= uptools/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/set= uptools/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/set= uptools/sandbox.py", > > line 73, in run > > return func() > > File > > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/set= uptools/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: >=20 > print "Audit requires PyFlakes installed in your system." >=20 > tells me that it's written for Python 2, but this: >=20 > /usr/local/lib/python3.2 >=20 > tells me that you're using Python 3. >=20 > In Python 2, "print" is a statement; in Python 3 it's a function. http://docs.python.org/library/2to3.html I am studying the Python 2 to 3 module for code generation techniques under my debugged environments by various operating systems such as=20 the linux, Windows or Apples.=20 =20 Python is an excellent programming language that really support=20 cross platform SW developments.=20