Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #18589

Re: problem to install Flask

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 <dihedral88888@googlemail.com>
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 <mailman.4467.1325819069.27778.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=1.168.129.131; posting-account=5JdMBQoAAABHnS4mjpqEzxnmWtgiiVNw
References <tencent_3193E7A70929376C04F89787@qq.com> <mailman.4467.1325819069.27778.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
MIME-Version 1.0
Subject Re: problem to install Flask
From 88888 Dihedral <dihedral88888@googlemail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.4474.1325836867.27778.python-list@python.org> (permalink)
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

Show key headers only | View raw


MRAB於 2012年1月6日星期五UTC+8上午11時05分03秒寫道:
> 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 <module>
> > 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 <lambda>
> > 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 <lambda>
> > ).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.

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 
 the linux, Windows or Apples. 
 
Python is an excellent programming language that really support 
cross platform SW developments. 

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: problem to install  Flask MRAB <python@mrabarnett.plus.com> - 2012-01-06 03:05 +0000
  Re: problem to install  Flask 88888 Dihedral <dihedral88888@googlemail.com> - 2012-01-06 00:01 -0800
  Re: problem to install  Flask 88888 Dihedral <dihedral88888@googlemail.com> - 2012-01-06 00:01 -0800

csiph-web