Hi,
Thank you for posting your command prompt session, it helps to
establish what you've done etc.
On 26 May 2012 15:57, Doubea Pierre <
dou...@gmail.com> wrote:
> I opened a command prompt, typed " pip install xutils" ,pressed enter and
> got the following message:
>
>
>
> Microsoft Windows [Version 6.1.7601]
> Copyright (c) 2009 Microsoft Corporation. All rights reserved.
>
> C:\Users\Doubster>pip install xutils
> 'pip' is not recognized as an internal or external command,
> operable program or batch file.
This implies you've not got pip installed, or perhaps it's installed
but cannot be found on the search path.
> I'm guessing I should go to the folder where xutils is on command prompt and
> then try "pip install xutils".
Not quite. If you use pip (or easy_install), you don't have to
manually download anything. You give a single command and that's it.
The job gets done. The whole point of using pip is that it takes care
of all the steps needed to install a Python package, including
locating, downloading, extracting etc. Anyway, given the error above
and that I'm disinclined to try and troubleshoot/solve possible pip
installation (or lack of installation) issues I'm going to suggest we
forget about pip for the moment.
By contrast, having manually downloaded the Python xlutils package, to
then manually install the package you should "go to the folder where
xlutils" were extracted to and then run the command:
python setup.py install
Note: It doesn't matter where you extract the downloaded file to since
the needed modules are copied to the correct locations in your Python
installation by the setup script automatically. So, just extract the
downloaded package somewhere, and find the folder. There should be a
file called "setup.py" in it, as well as some other files and folders.
Once you've found the folder, open a command prompt and type:
cd "path\to\the\extracted\folder"
where "path\to\the\extracted\folder" is the full path to the folder
where the files are extracted. I suggest you use quotes like I've
shown to ensure any spaces in the path does not cause complications.
(You may be able to copy the path from a folder window if you've
located it in that way.) Once you're in the folder, which should be
obvious since the prompt in the command window should indicate this as
being the current directory, you can use the
dir
command to check that you can see the setup.py file. Then you can type:
python setup.py install
If you get a "command not found" type message, it means Python is not
on your search path either. The proper fix for that is to add Python
to your search path, but for now the easiest way to get around that,
should it be an issue is to explicitly type the entire path e.g.
c:\python27\python setup.py install
(assuming you're using Python 2.7 here, adjust as required.) That
should get you going, post back if not.
Walter