Replit Error on Importing Telnyx in python file

Traceback (most recent call last):
  File "main.py", line 3, in <module>
    import telnyx
ModuleNotFoundError: No module named 'telnyx'

Hey @BillyerGardnere welcome to the forums!

Have you installed the package through the shell or the Replit Package Manager?

2 Likes

Nope how can i install can you guide me?

1 Like

This page in the docs should help https://docs.replit.com/programming-ide/installing-packages

4 Likes

I have readed but can’t understand really

1 Like

Liike I have to make changes in package-lock.json file?

1 Like

@BillyerGardnere try using pip install telnyx in the shell (CTRL + SHIFT + S or CMD + SHIFT + S).

4 Likes

Or poetry add telnyx. pip is the Python package manager and works on Replit. poetry is the Replit Python package manager, and as such should theoretically provide some advantages. I think that if you want to make a template, poetry is better as it adds the package to the Repl config files.

2 Likes

It’s poetry add telnyx.

1 Like

I knew I did something wrong. I’ll fix it. How could I forget?

1 Like