What should I do if I encounter the error No module named 'fyers_api' on FYERS?

What should I do if I encounter the error "No module named 'fyers_api'" on FYERS?

This error means that Python cannot find the fyers_api module in your environment. It usually occurs when the required package isn’t installed or is installed in the wrong environment.

How to fix it?

To install the package:

  1. pip install fyers-apiv3

Make sure:

  • You're using the correct Python environment where you want to run your FYERS integration script.
  • You activate any virtual environment you’ve created before installing or running your script.

What if...

ScenarioResolution
Error persists after installingCheck if the install succeeded by running pip show fyers-apiv3. If not, reinstall it or check your Python environment path.
Using multiple Python versionsUse python3 -m pip install fyers-apiv3 to ensure you're targeting the right interpreter.
If you're using Jupyter Notebook or VSCode, verify that the interpreter used matches the one where fyers-apiv3 is installed.

Last updated: 27 Jun 2025