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

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -