При импорте библиотеки calc в приложение Python (import calc):
import calc
ModuleNotFoundError: No module named 'calc'
Пробовал установить библиотеку:
python3 -m pip install calc
Collecting calc
Using cached https://files.pythonhosted.org/packages/b9/de/ab86b8225458cf7cfe5338a30d485629cbdb18c977a84cde17dc97185cdd/calc-1.0.zip
Building wheels for collected packages: calc
Running setup.py bdist_wheel for calc ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-6rrjb1o8/calc/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmphs4ewtgzpip-wheel- --python-tag cp36:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for calc
Running setup.py clean for calc
Failed to build calc
Installing collected packages: calc
Running setup.py install for calc ... done
Successfully installed calc-1.0
При последующем запуске программы с import calc выдает подобную ошибку:
result = calc.add(10, 5)
TypeError: add() takes 0 positional arguments but 2 were given
Как решить данную проблему? Метод add() должен принимать два аргумента а не 0