T
T
TheBruk2021-04-30 21:50:40
pip
TheBruk, 2021-04-30 21:50:40

What if, when importing a custom module with pypi, the module's functions fail to be called?

Despite numerous tutorials, it remains a mystery to me how to write my own module in Python
My TK :

  1. Write a simple module program
  2. Upload to PyPi
  3. Install this module via pip into the system and use

The problem is that after downloading the module, everything written is not readable, and all functions cannot be called. The program gives an error about not being found. Please tell me how the main code of the module with the program should look like.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
ge, 2021-04-30
@gedev

Check your setup.py . Most likely, py_modules is not specified there . Or use find_packages() .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question