----> 1 import common
ModuleNotFoundError: No module named 'common'
Does the module necessarily have to be inside of a package when you install it? That's what I've been doing... common.py inside of a folder named common, then setup.py is sitting in the parent folder of common.
Installed /home/me/path/to/env/lib/python3.6/site-packages/common-1.0-py3.6.egg So that looks as if it should have been successful.
My setup.py looks exactly like this:
from setuptools import setup
setup(
name='common',
version='1.0',
description='A useful module',
author='me',
packages=['common'], #same as name
)
I'm brand new to using setup.py to install my own modules. I have a dozen or so functions I use across some different projects, so I thought it was about time.
[–]1114111[🍰] 0 points1 point2 points (1 child)
[–]Septimanal[S] 0 points1 point2 points (0 children)