0

I have created requirements.txt file in my directory. Created virtual environment and ran pip install -r requirements.txt. In the file I have the following libraries: ipykernel, numpy==1.23.1 pandas==1.4.3, nltk

Everything is installed successfully, here is part of the code: enter image description here

But then when I import my libraries in my jupyter notebook I see this error: enter image description here

I thought it might be just a problem with numpy but when I commented this line the same error appeared for pandas.

Yana
  • 785
  • 8
  • 23
  • Does this answer your question? [Jupyter Notebook: module not found even after pip install](https://stackoverflow.com/questions/61265125/jupyter-notebook-module-not-found-even-after-pip-install) – George Aug 03 '22 at 06:53
  • Have you activate your vitual environment? like `source your-virtual-env-path/bin/activate`? – AnhPC03 Aug 03 '22 at 06:53
  • Yes, I have activated it, but I found out I hadn't selected the right interpreter. After I did that, it all worked out. – Yana Aug 03 '22 at 06:56

0 Answers0