How to include a text file in a python installed package?
问题 I have created a python package that looks like this: /command /command module.py __main__.py README.md setup.py file.txt To install i run: sudo python setup.py install Now when i call $ command it shows this error: FileNotFoundError: [Errno 2] No such file or directory: '../file.txt' There are approximately the contents of modules setup.py , __main__.py and module.py setup.py import setuptools setuptools.setup( name='command', ... entry_points={ 'console_scripts': [ 'command = command.__main