Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

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


api
capture.png (16.9 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
14.4k 30 5 10

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



1643601490429.png (9.8 KiB)
1643601163111.png (24.2 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
25.1k 57 17 14

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.


python-shell.png (16.1 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.