I created virtual environment and activate it. installed packages but unable to import them from virtual environment.
pip freeze:
But
You should invoke the python
that is installed within your environment. That is
source myenv/bin/activate
python path/to/script.py
In Unix, you would add the following #!/usr/bin/env python
at the top of your script and this would allow you to run it without specifying the python
binary.
source myenv/bin/activate
path/to/script.py
Possibly that works in Windows in the same way or differently.