Which directory should requests and openpyxl modules be installed to?

Nathan Ernst nathan.ernst at gmail.com
Mon Apr 3 18:25:45 EDT 2017


Hi Pauline,

I was able to infer you're on Windows, but not which version. Try
right-clicking on the start menu to start a command prompt as an
administrator (I'm not sure that was available in Windows 7, and I don't
have access to a Win7 box currently to verify). Failing that, you should be
able to find a shortcut to the command prompt somewhere under
Programs\Windows, Programs\Windows Accessories, or a like named folder.
Just keep looking, it's there. (the parent folder will be named Windows or
Programs - look through all subfolders until you find it). Once you find
it, right-click and select run as Administrator. Then, you should be able
to run the pip install command just fine.

If you cannot find Command Prompt for whatever reason, an alternate way is
to create a short cut on your desktop. Just right-click on your desktop.
Select New\Create Shortcut. When it asks you to select the location of the
file, just enter "cmd.exe".  Hit "next" until the dialog exits. Then,
right-click on the newly created shortcut and select "run as
administrator", then try your pip install command. Where you run the pip
command (i.e. current directory should not matter).

Regards

On Mon, Apr 3, 2017 at 5:14 PM, <psmith36 at ewu.edu> wrote:

> On Monday, April 3, 2017 at 2:02:30 PM UTC-7, Pauline wrote:
> > Hi,
> >
> >   I am a newbie to Python.  I am using Python 2.7.12.  I want to install
> the modules of requests and openpyxl using pip.  In the Internet, people
> only said pip install requests, but they do not say in which directory.  I
> only found one that said install in the script directory within Python.
> Well, that didn't work.
> >
> >   How and which directory in the command line to type pip install
> requests?
> >
> > Thanks!
> > Pauline
>
> Hi Nate,
>
>   Well, I didn't tell you I am on Windows 7.  When I went to cmd, it was
> C:\Users\myname.  Then I navigated to where my Python was installed
> C:\Program
> Files\Python 2.7.12>
>
>   Do I type pip install requests at the end of the arrow, or do I have to
> go somewhere else?
>
> Thanks a bunch!
> Pauline
> --
> https://mail.python.org/mailman/listinfo/python-list
>


More information about the Python-list mailing list