If you're on Windows the command would be `py -m pip install openpyxl` (since it sounds like you didn't check the box at install time to add python to your PATH), although I would suggest doing `py -m pip install --user openpyxl` instead (a virtual environment would be better, but explaining that is off-topic for this mailing list).
On Tue, 27 Mar 2018 at 23:04 森平 直樹 <naoki_morih...@outlook.jp> wrote: > Mathew, > > > > Thank you for your quick response. > > > > Does “cmd” shell mean MS-Windows command prompt ? > > > > I executed in Windows command prompt and the result is shown below: > > > > C:\Users\N.Morihira>pip install openpyxl > > Pip is not recognized as executable command at Windows command prompt and > so is Python command line. > > > > > > Best Regards, > > --------------------- > Naoki Morihira > TEL: 01181-90-6460-6265 <+81%2090-6460-6265> > --------------------- > > *差出人: *Matthew Brett <matthew.br...@gmail.com> > *送信日時: *2018年3月27日 13:21 > *宛先: *森平 直樹 <naoki_morih...@outlook.jp> > *CC: *Brett Cannon <br...@python.org>; distutils-sig@python.org > > *件名: *Re: [Distutils] Need how to install 3rd party python modules > > > > Hi, > > Brett is just saying that you should first open a "cmd" shell, and, at > the cmd prompt, type: > > pip install openpyxl > > Your problem (which is relatively common) is that you were typing the > command at the Python prompt, instead of the cmd prompt. > > Best, > > Matthew > > > On Tue, Mar 27, 2018 at 6:04 PM, 森平 直樹 <naoki_morih...@outlook.jp> wrote: > > Brett, > > > > > > > > Thank you for responding me. > > > > Could you tell me the e-mail address of the python-tutor ? > > > > And if you have something even a little to be a hint to resolve this > syntax > > error, it is appreciated to teach me. > > > > > > > > Best Regards, > > > > --------------------- > > Naoki Morihira > > TEL: 01181-90-6460-6265 <+81%2090-6460-6265> > > --------------------- > > > > > > > > ________________________________ > > 差出人: Brett Cannon <br...@python.org> > > 送信日時: Tuesday, March 27, 2018 9:44:57 AM > > 宛先: ?? ?? > > CC: distutils-sig@python.org > > 件名: Re: [Distutils] Need how to install 3rd party python modules > > > > For general help to get started with Python I would recommend the > > python-tutor mailing list; this one is for discussing the development of > how > > to package things in Python. > > > > But in your specific case you typed the command in Python's REPL and not > at > > the terminal. For further help please ask on python-tutor. > > > > On Tue, 27 Mar 2018 at 09:42 ?? ?? <naoki_morih...@outlook.jp> wrote: > >> > >> I would like to install openpyxl, and > >> > >> I installed Python shown as follows: > >> > >> Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit > >> (Intel)] on win32 > >> > >> > >> > >> But as the following situation shows, I cannot succeed installing > >> openpyxl. > >> > >> > >> > >> >>> pip install openpyxl > >> > >> File "<stdin>", line 1 > >> > >> pip install openpyxl > >> > >> ^ > >> > >> SyntaxError: invalid syntax > >> > >> > >> > >> How can I succeed installing openpyxl ? > >> > >> > >> > >> Best Regards, > >> > >> --------------------- > >> Naoki Morihira > >> TEL: 01181-90-6460-6265 <+81%2090-6460-6265> > >> --------------------- > >> > >> > >> > >> _______________________________________________ > >> Distutils-SIG maillist - Distutils-SIG@python.org > >> https://mail.python.org/mailman/listinfo/distutils-sig > > > > > > _______________________________________________ > > Distutils-SIG maillist - Distutils-SIG@python.org > > https://mail.python.org/mailman/listinfo/distutils-sig > > > > >
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig