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
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.