For a deeper look into our Eikon Data API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials | Articles
Initially I used pip install requests within VS. The request came back, all requirements satisfied. I restarted VS with a new terminal and tried pip install requests again. This time it installed requests and then everything worked fine.
I have never used Visual Studio but from your question, it seems to be a Visual Studio environment issue.
So I google "visual studio pip install python" and I got this url,
Hope this help.
I had similar issues myself when I was trying out VS and for me, it was as explained in the link above - my VS and Jupyter were using different Python environments.
the missing package was installed in the Jupyter used env but not in the VS env
Thanks, I had that thought as well. I then opened a terminal within VS and did pip install requests and it comes up as already satisfied...
it is working now, I have figured it out. Many thanks for the replies.
Initially I used pip install requests within VS. The request came back, all requirements satisfied. I restarted VS with a new terminal and tried pip install requests again. This time it installed requests and then everything worked fine.
The "ImportError: No module named requests" error occurs when you try to import the "requests" module in Python, but it's not installed in your environment. To fix this, you should install the "requests" library using pip, a package manager for Python. Open your command prompt or terminal and run the command "pip install requests." This will download and install the "requests" module, allowing you to use it in your Python scripts. Ensure that pip is properly installed and configured in your Python environment before running the installation command.