Today, the versatility of the language allows us to use Python in a variety of environments, such as mobile applications or web development, hardware programming, artificial intelligence, ML and more. In addition, the Python language greatly simplifies automation processes because you can use various tools and out-of-the-box modules in fairly complex tasks. Combined with RPA technologies, this increases productivity and requires less code and development time.
Regarding Python, ElectroNeek IDE Studio Pro doesn’t interpret commands by itself (it uses the standard Python interpreter installed locally on the machine), so you can use third-party Python libraries by installing them locally as well.
When running the Python file, make sure the Python interpreter is installed on the computer (platform requires version 3 of the interpreter) and environment variables are set for Python in the OS settings.
If a “FileNotFoundError: [Errno 2] No such file or directory” error occurs during script execution, there are two possible reasons:
- The path to this file uses a relative path instead of an absolute path, to get around this limitation, you must use an absolute path to the file.
- The file path has spaces in the file or folder name: To get around this restriction, put the file path in double quotes, for example: “C:\Python\Python Script\test notification.py”.
This means when running the script, you need to specify an absolute path to the script file. If the path to the script file or the script name contains spaces, you must enclose the path in double quotes. You can learn more about setting up the “Run a Python script” action in the following article “How to transfer data from Studio Pro to Python” from our knowledge base.