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


Groups > comp.lang.python > #71791 > unrolled thread

'Swampy' installation through 'pip'

Started byRonak Dhakan <ronaksoni301@gmail.com>
First post2014-05-20 00:11 -0700
Last post2014-05-21 01:12 -0700
Articles 5 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  'Swampy' installation through 'pip' Ronak Dhakan <ronaksoni301@gmail.com> - 2014-05-20 00:11 -0700
    Re: 'Swampy' installation through 'pip' Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-05-20 14:20 +0100
    Re: 'Swampy' installation through 'pip' Chris Angelico <rosuav@gmail.com> - 2014-05-20 23:35 +1000
    Re: 'Swampy' installation through 'pip' Ian Kelly <ian.g.kelly@gmail.com> - 2014-05-20 09:33 -0600
    Re: 'Swampy' installation through 'pip' Ronak Dhakan <ronaksoni301@gmail.com> - 2014-05-21 01:12 -0700

#71791 — 'Swampy' installation through 'pip'

FromRonak Dhakan <ronaksoni301@gmail.com>
Date2014-05-20 00:11 -0700
Subject'Swampy' installation through 'pip'
Message-ID<d4b965e1-1bb3-4d26-bf99-544e6e64d21a@googlegroups.com>
I have just started learning python from How to Think Like a Computer Scientist. It requires me to install 'swampy'   (http://www.greenteapress.com/thinkpython/swampy/install.html)   which requires me to install 'pip'   (https://pip.pypa.io/en/latest/installing.html).   I think I was able to somehow install pip, but am unable to install swampy.

When i run   'pip install swampy'   in windows command prompt, I get an error:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Ronak>E:

E:\>pip install swampy
Fatal error in launcher: Unable to create process using '""E:\Program Files\Pyth
on 2.7.6\pythonw.exe"" "E:\Program Files\Python 2.7.6\Scripts\pip.exe" install s
wampy'

When I run   'pip install swampy'   in IDLE (Python 2.7.6 Shell), I get the following error:

Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> pip install swampy
SyntaxError: invalid syntax
>>> 

with the word install highlighted in red.

I have installed pip by opening it in IDLE & running it from there. A new folder   'Scripts'   was created in the Python installation directory   'E:\Program Files\Python 2.7.6'   with the following files:

easy_install-2.7.exe
easy_install.exe
pip2.7.exe
pip2.exe
pip.exe

I have added   'E:\Program Files\Python 2.7.6'   &   'E:\Program Files\Python 2.7.6\Scripts'   to the   'path'   variable in Environment Variables in Windows.

I have added   'E:\Program Files\Python 2.7.6\Scripts'   to the   'PYTHONPATH'   variable in Environment Variables in Windows.

I have read a lot online trying to get it work, but now I am lost in the technical jargons. I might have missed some steps or done something incorrectly.

Please let me know where I went wrong or guide me on how to install swampy.

Thanks.

Ronak.

[toc] | [next] | [standalone]


#71803

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2014-05-20 14:20 +0100
Message-ID<mailman.10153.1400592033.18130.python-list@python.org>
In reply to#71791
On 20/05/2014 08:11, Ronak Dhakan wrote:
> I have just started learning python from How to Think Like a Computer Scientist. It requires me to install 'swampy'   (http://www.greenteapress.com/thinkpython/swampy/install.html)   which requires me to install 'pip'   (https://pip.pypa.io/en/latest/installing.html).   I think I was able to somehow install pip, but am unable to install swampy.
>
> When i run   'pip install swampy'   in windows command prompt, I get an error:
>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> C:\Documents and Settings\Ronak>E:
>
> E:\>pip install swampy
> Fatal error in launcher: Unable to create process using '""E:\Program Files\Pyth
> on 2.7.6\pythonw.exe"" "E:\Program Files\Python 2.7.6\Scripts\pip.exe" install s
> wampy'
>

Your setup looks wrong, surely that should be python.exe, not pythonw.exe.

I'd recommend reinstalling and use the default settings, putting Python 
at the top level of the disk and not in "Program Files", that's another 
set of potential set of problems eliminated straight away.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

[toc] | [prev] | [next] | [standalone]


#71804

FromChris Angelico <rosuav@gmail.com>
Date2014-05-20 23:35 +1000
Message-ID<mailman.10154.1400592929.18130.python-list@python.org>
In reply to#71791
On Tue, May 20, 2014 at 11:20 PM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
> I'd recommend reinstalling and use the default settings, putting Python at
> the top level of the disk and not in "Program Files", that's another set of
> potential set of problems eliminated straight away.

Second this recommendation. I saw some NEWS entries recently regarding
pip and spaces in file names.

If you're on the absolute latest pip, it would quite possibly work,
but I don't know if that works with 2.7, and if so, with which 2.7.x.
Avoid spaces unless you're sure.

In fact, looking at the error messages, I suspect this isn't a
*potential* set of problems, but quite probably the actual problem.

ChrisA

[toc] | [prev] | [next] | [standalone]


#71810

FromIan Kelly <ian.g.kelly@gmail.com>
Date2014-05-20 09:33 -0600
Message-ID<mailman.10156.1400600430.18130.python-list@python.org>
In reply to#71791

[Multipart message — attachments visible in raw view] — view raw

On May 20, 2014 7:22 AM, "Mark Lawrence" <breamoreboy@yahoo.co.uk> wrote:
>
> On 20/05/2014 08:11, Ronak Dhakan wrote:
>>
>> I have just started learning python from How to Think Like a Computer
Scientist. It requires me to install 'swampy'   (
http://www.greenteapress.com/thinkpython/swampy/install.html)   which
requires me to install 'pip'   (
https://pip.pypa.io/en/latest/installing.html).   I think I was able to
somehow install pip, but am unable to install swampy.
>>
>> When i run   'pip install swampy'   in windows command prompt, I get an
error:
>>
>> Microsoft Windows XP [Version 5.1.2600]
>> (C) Copyright 1985-2001 Microsoft Corp.
>>
>> C:\Documents and Settings\Ronak>E:
>>
>> E:\>pip install swampy
>> Fatal error in launcher: Unable to create process using '""E:\Program
Files\Pyth
>> on 2.7.6\pythonw.exe"" "E:\Program Files\Python 2.7.6\Scripts\pip.exe"
install s
>> wampy'
>>
>
> Your setup looks wrong, surely that should be python.exe, not pythonw.exe.

I would bet that's a result of installing from IDLE. Recommend reinstalling
pip from the Windows command line.

[toc] | [prev] | [next] | [standalone]


#71843

FromRonak Dhakan <ronaksoni301@gmail.com>
Date2014-05-21 01:12 -0700
Message-ID<4ff628db-1b32-449d-9f93-37d567c4627a@googlegroups.com>
In reply to#71791
After reading the suggestions...

I uninstalled Python 2.7.6 from   'E:\Program Files\Python 2.7.6'   & installed in   'C:\Python27'.

Then I put   'get-pip.py'   file in   'C:\Python27'   , opened command prompt, navigated to   'C:\Python27'  & ran   'python get-pip.py'   and pip was installed.

Then I navigated to   'C:\Python27\Scripts'   in command prompt, ran   'pip install swampy'   . And swampy was downloaded & installed.

Yeeaaayy !!!   Problem solved !

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web