Python Module can't be accessed when using venv

Viewed 147

I love organization.

So I wanted to use venv to make sure group of modules be installed in a single venv. But when I install the package using pip inside a venv, the Python interpreter is not identifying that module. I have already included the environment site package folder to PATH variable.

How do I use python modules inside a venv?

Info

Code Editor : Sublime Text 3
Python version : 3.8.6 32bit
Package name which causes this problem : (Any Package)

Commands used :

python -m venv virenv
virenv\Scripts\activate
pip3 install package

The Code :

import package
print("Hello")

The output

ModuleNotFoundError: No module named 'package'
0 Answers
Related