I'm trying to write my own setup.py to be able to import the module but I get errors
import mylib
>>> ModuleNotFoundError: No module named 'mylib'
My problem is that I do not understand why this is happening.
Currently I'm using windows and conda and have created an evnironment named "rig" where i try to install the packaged by:
(rig) C:\> pip install -e "path to lib"
After installation I can see that the lib has been installed
pip list
>> ...
>> mylib (1.2.3)
>> ...
It seems like the correct python executable are used:
import sys"
print(sys.executable)
>>>C:\ProgramData\Anaconda3\envs\rig\python.exe
how can it be that pip lists the module but it's not possible to import it? How do I debug this problem, suggestions?
my setup.py file:
from setuptools import setup, find_packages
setup(name='mylib',
description="experimental platform for ejector-program",
author="Daniel Grafstrom",
version='1.2.3',
license='GPLv3',
packages = ['JetFiles'], #packages=find_packages(exclude=['examples','tests']),
install_requires=['mongoengine',
'pandas',
'numpy',
'pyvalid'],
)