met the error when running the code on CMD to check APIs version

capture.pngI met the error message as the screenshot when following the guidance for Eikon Data API(Python) Troubleshooting.

https://developers.refinitiv.com/en/article-catalog/article/eikon-data-api-python-troubleshooting-refinitiv


Tagged:

Best Answer

  • raksina.samasiri
    Answer ✓

    Hi @yan.yan

    The code you used is the Python code, to run the Python code in CMD, you can use command 'Python' then you can run the python code in the line with >>>

    Here's the screenshot of running Python code in CMD

    1643601490429.png

    or another command, which can be run in CMD directly, is

    pip show eikon

    1643601163111.pngPlease note that if the Python and Eikon library is installed in Anaconda/Miniconda, the Anaconda Prompt should be used instead of the CMD


Answers

  • Hello @yan.yan

    Those commands are the Python statement, you cannot run them on the command prompt. You need to run them in the Python Script, or Python Shell, or Jupyter Notebook only.

    python-shell.png

    I highly recommend you check the basics of the Python programming language (such as this https://www.python.org/about/gettingstarted/ link) before further using the API.