简体   繁体   中英

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.

点列表的终端镜头-本地

终端没有导入包

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM