0

enter image description hereenter image description hereI cant run my programm because nltk module is missing but i just intstalled it and it just right here in the folderenter image description hereenter image description here

I tried to reinstall my python, and tried to change python interpreter but nothing worked

nik28112
  • 29
  • 4
  • Please [edit] to convert your images of text into actual text. [See here](https://meta.stackoverflow.com/a/285557/11107541) for why. – starball Oct 30 '22 at 22:59

1 Answers1

0

How have you actually installed nltk?

You can check if it's actually installed with pip freeze.

What might be happening here is that you could have another version of python installed, so make sure that you actually call the same interpreter for checking and installing with pip, in your case E:/pythonProject1/Scripts/python.exe -m pip freeze and E:/pythonProject1/Scripts/python.exe -m pip install nltk

  • i added new png with command pip freeze, its actually shows that i have nltk – nik28112 Oct 30 '22 at 21:15
  • @nik28112 yes but there's a difference between `pip freeze` and `python3 -m pip freeze`, using the latter confirms that you're using the right `pip`. – blackbrandt Oct 30 '22 at 21:19
  • @blackbrandt its just saying "Python". Wierd (i added new png so you can see it) – nik28112 Oct 30 '22 at 21:26
  • @nik28112, as I mentioned in my answer, what does `E:/pythonProject1/Scripts/python.exe -m pip freeze` returns for you. That is the exact interpreter you are using in your screenshot, so you need to make sure you check with that one. – mcardenas13 Oct 30 '22 at 21:38