Reputation: 152
I have installed a package in my virtual environment. The package is also listed in the conda list but when I try to import the package it returns an Import Error.
I was following the tutorial here
Upvotes: 1
Views: 415
Reputation: 11228
i just followed the whole tutorial,
first after creating the structure (schema in the tutorial):
1 . in terminal open your env
2. run python -m pip install --user --upgrade setuptools wheel
3. python setup.py sdist
4. python setup.py install
then in terminal (virtual env activated ) run commands
import example_pkg
it will import it.
Upvotes: 1