python - install local package into virtualenv using setuptools -
i have virtualenv multiple little projects in it. consider equal, folder structure looks this:
categorisation_ml/ categorisation.py setup.py __init__.py nlp/ nlp.py setup.py __init__.py etc/ __init__.py i want install both packages same virtualenv both accessible everywhere within virtualenv.
using this , this guide, have created setup.py script (for categorisation in case):
from setuptools import setup, find_packages setup( name = "categorisation", version = "1.0", scripts = ['categorisation.py'] ) then, run python setup.py install , seems complete successfully.
when cd nlp/, enter python command line , try
import categorisation, get:
importerror: no module named categorisation.
what missing?
Comments
Post a Comment