BATspock
BATspock

Reputation: 152

Unable to import package in virtual environment using anaconda

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.

terminal shot of pip list --local

terminal short of importing the package

I was following the tutorial here

Upvotes: 1

Views: 415

Answers (1)

sahasrara62
sahasrara62

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

Related Questions