# Python doesn’t find local module although it is installed

**URL:** <https://discuss.python.org/t/python-doesn-t-find-local-module-although-it-is-installed/52167>\
**Category:** Python Help\
**Created:** [April 29, 2024, 10:24am UTC](https://discuss.python.org/t/python-doesn-t-find-local-module-although-it-is-installed/52167 "2024-04-29T10:24:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pasarkar](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@Pasarkar](https://discuss.python.org/u/Pasarkar)\
**Post date:** [April 29, 2024, 10:24am UTC](https://discuss.python.org/t/python-doesn-t-find-local-module-although-it-is-installed/52167/1 "2024-04-29T10:24:39Z")

</div>

I have created a package containing some python files using setup.py. Built the package using pip install .  
I installed the package locally in my project as it is not published. But I am unable to import it.  
You can see in image that package is successfully installed and listed in site-packages.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/python1/original/3X/7/9/799beb4ed42e0d92f4510500df5b66b3aeb6e646.png)

---

<div class="post-metadata">

**Author:** ![pf\_moore](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/pf_moore/32/35_2.png) [@pf\_moore](https://discuss.python.org/u/pf_moore)\
**Post date:** [April 29, 2024, 10:37am UTC](https://discuss.python.org/t/python-doesn-t-find-local-module-although-it-is-installed/52167/2 "2024-04-29T10:37:29Z")

</div>

The package directory name needs to use underscores. Dashes are not valid in Python identifiers.

---

<div class="post-metadata">

**Author:** ![Pasarkar](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@Pasarkar](https://discuss.python.org/u/Pasarkar)\
**Post date:** [April 29, 2024, 10:52am UTC](https://discuss.python.org/t/python-doesn-t-find-local-module-although-it-is-installed/52167/3 "2024-04-29T10:52:37Z")

</div>

Thank You it work.
