Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.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; 'offline': 0.03; 'url:pypi': 0.03; 'skip:[ 20': 0.04; '(b)': 0.07; 'skip:\\ 20': 0.07; 'utf-8': 0.07; '[],': 0.09; 'exit': 0.09; 'cc:addr:python- list': 0.11; "('',": 0.16; 'ez_setup.py': 0.16; 'skip:[ 30': 0.16; 'skip:[ 50': 0.16; 'subject:install': 0.16; 'url:packages': 0.16; 'url:py': 0.16; 'url:setuptools': 0.16; 'exception': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'command': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; '(a)': 0.24; 'cc:2**0': 0.24; 'skip:" 30': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'generally': 0.29; 'raise': 0.29; 'returned': 0.30; 'message-id:@mail.gmail.com': 0.30; "skip:' 10": 0.31; 'file': 0.32; 'url:python': 0.33; '(most': 0.33; 'url:source': 0.33; 'sense': 0.34; 'skip:_ 10': 0.34; 'skip:d 20': 0.34; 'skip:s 30': 0.35; 'received:google.com': 0.35; 'url:org': 0.36; 'wrong': 0.37; 'remote': 0.38; 'pm,': 0.38; 'recent': 0.39; 'subject:can': 0.39; 'either': 0.39; 'from:charset:utf-8': 0.61; 'skip:n 10': 0.64; 'zip': 0.64; 'skip:\xe2 10': 0.65; 'skip:w 40': 0.68; '8bit%:43': 0.74; ',the': 0.84; 'skip:. 50': 0.84; 'url:zip': 0.84; 'url:tk': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=F9qx2ykPwtsHikGdB2b9J3EXrRdCw4pc8X5FJhGcwnA=; b=Ru5FFxqpHcC6jDq2ixzPopPGOysQXSTUWAn1nu9RDln2Wq/9wCwQSIyKUNzLe1qlK/ asT7JWKzutQedZavI8eROoUE+PhOTICgFTUbnQURHA5AOkzJxSwOmQcEksegRM5kSjHU S5noVWgL7kFGgzGL0uc8RpERq3TZbrIefu8NTyXlsny3UNkz4xddkxAxC2k6ixGFl1jA rqR/WS4fBBIYdI5z0qA211xc6SeyEqOYLID6GKQrfqbi2RcLf6/ocI94aLRY1LByDfyO 2pQu6m/UnZsrjQQ0A6KR/RK6P+ymMAZJxMXaoC2+WwZTGgsD5XcbrXyhFMegS6O+SNSN yoAw== MIME-Version: 1.0 X-Received: by 10.42.67.203 with SMTP id u11mr27775804ici.20.1403969766783; Sat, 28 Jun 2014 08:36:06 -0700 (PDT) In-Reply-To: References: Date: Sat, 28 Jun 2014 17:36:06 +0200 Subject: Re: why i can't install ez_setup From: =?UTF-8?B?Q2hyaXMg4oCcS3dwb2xza2HigJ0gV2Fycmljaw==?= To: =?UTF-8?B?5rC06Z2Z5rWB5rex?= <1248283536@qq.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list 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: 62 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1403969769 news.xs4all.nl 2906 [2001:888:2000:d::a6]:45872 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:73710 On Sat, Jun 28, 2014 at 1:49 PM, =E6=B0=B4=E9=9D=99=E6=B5=81=E6=B7=B1 <1248= 283536@qq.com> wrote: > I have downloaoded ez_setup.py ,when i install it ,the wrong message: > >>python d:\ez_setup.py > Downloading > https://pypi.python.org/packages/source/s/setuptools/setuptools-5.2. > zip > Exception calling "DownloadFile" with "2" argument(s): "Unable to connect= to > th > e remote server" > At line:1 char:152 > + [System.Net.WebRequest]::DefaultWebProxy.Credentials =3D > [System.Net.Credential > Cache]::DefaultCredentials; (new-object System.Net.WebClient).DownloadFil= e > <<<< > ('https://pypi.python.org/packages/source/s/setuptools/setuptools-5.2.zi= p', > 'C > :\\Users\\pengsir\\setuptools-5.2.zip') > + CategoryInfo : NotSpecified: (:) [], > MethodInvocationException > + FullyQualifiedErrorId : DotNetMethodException > > Traceback (most recent call last): > File "d:\ez_setup.py", line 332, in > sys.exit(main()) > File "d:\ez_setup.py", line 327, in main > downloader_factory=3Doptions.downloader_factory, > File "d:\ez_setup.py", line 287, in download_setuptools > downloader(url, saveto) > File "d:\ez_setup.py", line 192, in download_file_powershell > _clean_check(cmd, target) > File "d:\ez_setup.py", line 169, in _clean_check > subprocess.check_call(cmd) > File "d:\Python27\lib\subprocess.py", line 540, in check_call > raise CalledProcessError(retcode, cmd) > subprocess.CalledProcessError: Command '['powershell', '-Command', > "[System.Net. > WebRequest]::DefaultWebProxy.Credentials =3D > [System.Net.CredentialCache]::Default > Credentials; (new-object > System.Net.WebClient).DownloadFile('https://pypi.python > .org/packages/source/s/setuptools/setuptools-5.2.zip', > 'C:\\\\Users\\\\pengsir\\ > \\setuptools-5.2.zip')"]' returned non-zero exit status 1 > > what is wrong with it? Either (a) pypi, or (b) you were offline when trying to install. Also, you generally want to use get-pip.py instead, it will also get you pip in addition to setuptools: https://bootstrap.pypa.io/get-pip.py --=20 Chris =E2=80=9CKwpolska=E2=80=9D Warrick PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense