[Tutor] (no subject)

Steven D'Aprano steve at pearwood.info
Wed Mar 28 06:32:42 EDT 2018


On Wed, Mar 28, 2018 at 03:08:00PM +0900, naoki_morihira at softbank.ne.jp wrote:
> I want to install 3rd party module, ex openpyxl.
> And I executed the following command in windows command prompt as follows:
> pip install openpyxl
> But pip is not recognized as executable command at windows.

What version of Python are you using?

If you have Python 3.4 or better, or Python 2.7.9, you can say:

  python -m ensurepip

at the Windows command prompt to install pip. If there are no 
installation errors, then you can run 

  pip install openpyxl

at the Windows command prompt. No internet is needed for the first 
command, but for the second you will need internet access.

https://docs.python.org/3/library/ensurepip.html

On Windows, if you have trouble running the "python" command, it might 
be easier to use "py" instead:

https://docs.python.org/3/using/windows.html#from-the-command-line


-- 
Steve



More information about the Tutor mailing list