Why is the python package installed with a dash in its name?

I have the following setup.py file:

setup(
     name='reports_parsers',
     version='0.1',
     ...
)

When I run the command python setup.py install, the package is installed with a name reports-parsers==0.1that I cannot import due to SyntaxError.

How can I do the installation with the correct name?

+4
source share

Source: https://habr.com/ru/post/1619717/


All Articles