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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -