2
votes

(base) F:>pip3 install nltk 'pip3' is not recognized as an internal or external command, operable program or batch file.

what should i do to resolve this issue. Thanks in advance

2
What happens if you type F:\> pip and hit Enter?zedfoxus
Usage: pip <command> [options] Commands: install Install packages. download Download packages. uninstall Uninstall packages. freeze Output installed packages in requirements format. list List installed packages. IT WORKS WHEN I TYPE "F:/ PIP"morais
What happens when you type F:\> pip install nltk?zedfoxus
(base) F:\>pip install nltk Requirement already satisfied: nltk in f:\python\lib\site-packages (3.4) Requirement already satisfied: six in f:\python\lib\site-packages (from nltk) (1.12.0) Requirement already satisfied: singledispatch in f:\python\lib\site-packages (from nltk) (3.4.0.3)morais
i think it works now. thanks I am new to pythton.morais

2 Answers

10
votes

On Windows, it's a good idea to stick to launching pip via the py.exe common launcher, so you can provide flags to specify which version of Python to use without needing to deal with a complicated PATH.

To use it for Python 3, just replace:

pip3 RESTOFCOMMAND

with:

py -3 -mpip RESTOFCOMMAND

It's a little bit longer to type, but it avoids a lot of hassles with PATH management, and changing it to run on more and more specific Python versions (when you have multiple versions available) is easy; if you want to be sure Python 3.6 is used even if Python 3.7 is available, you'd just change to:

py -3.6 -mpip RESTOFCOMMAND
1
votes

On your computer, it appears that you can install using pip instead of pip3. So, just use:

F:\> pip install whatever

You should check your system path by doing this:

F:\> echo %PATH%

You will get ; separated paths. Find the path to python installation. Chances are you will see ...\Scripts. You can go to that directory and confirm that you have pip. If you have pip3 installed elsewhere (you can do file search in Windows), you can add that path to your PATH variable.

https://projects.raspberrypi.org/en/projects/using-pip-on-windows/5 can help you.