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

    • Related Articles

    • What steps should I take if I encounter the error "Please provide a valid symbol" in an API request?

      If you receive an error stating "Please provide a valid symbol," it's essential to verify the accuracy and validity of the symbol used in your API request. Firstly, double-check the symbol to ensure it hasn't expired and that it is formatted ...
    • What is FYERS API?

      We have launched FYERS trading API mainly to address the unique requirements of the Algo trading community and capital market startups that require trading related functionality without having to set up their own brokerage. With our API, you will be ...
    • How is FYERS API useful?

      If you are building a trading/investing platform, FYERS API will solve the execution piece by enabling users to place orders and trade through us. You can also use the APIs to enable trading strategies with execution, manage portfolios and more. ...
    • How to revoke FYERS API Access?

      If you want to cancel/delete the FYERS API access, you can do it by yourself in the My API Dashboard. Login to My API with your FYERS credentials and go to the Dashboard, you’ll be able to view all the APIs you’ve created along with all the FYERS ...
    • Where can I find sample code for Fyers API v3?

      Sample code for API v3 is available in the FYERS GitHub repository. These examples cover various functionalities of API v3, providing helpful code snippets and scripts for integrating the API into your applications.