SyntaxError: invalid character in identifier — despite there being almost certainly no unallowed character
问题 I'm getting the message: >>> import some_module Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/david/.local/lib/python3.6/site-packages/some_module.py", line 1 def some_func(): ^ SyntaxError: invalid character in identifier When I am trying to import a local module from a package I installed with pip. The structure of the package is as follows: modules_and_packages ├── modules_and_packages │ ├── __init__.py │ └── some_module.py ├── setup.py └── bin └──