Installation issues in jupyter notebook

I have created a virtual environment from the terminal in order to install some new python libraries (Tweepy). How do I then use Jupyter Notebooks from that virtual environment, so that I can access the new libraries? Thanks.

For that, I have installed tweepy.

Kafka is installed on cloudxlab so why it showing an error ModuleNotFoundError .


ModuleNotFoundError Traceback (most recent call last)
in
2 from tweepy import OAuthHandler
3 from tweepy import Stream
----> 4 from kafka import SimpleProducer, KafkaClient
5
6 access_token = “1200315094174859265-9UD9oGFIqNM4SsX38TnRWMW843mlV2”

ModuleNotFoundError: No module named ‘kafka’