I'm currently working in a conda environment and I have a directory named "mypackage" containing four files:
1. mod1.py
def f1(a: int):
return a + 1
2. mod2.py
from mod1 import f1
def f2(a: int):
b = f1(a)
return b + 1
3. __init__.py
# This file is empty
4. setup.py
from setuptools import setup, find_packages
setup(
name='mypackage',
version='1.0.0',
description='A description of mypackage',
packages=find_packages(),
author='My Name',
author_email='my.email@example.com',
)
I would like to be able to import my modules from any directory on my PC without modifying sys.path. Is it possible to install my package locally on my PC?
I have reviewed several links (Installing specific package version with pip) but they are too advanced for me.