Beginning in version 9.0, SecureCRT on the Windows platform supports the use of a third-party Python 3.x scripting engine.
Here are some tips to help you get started with using a Python 3.x scripting engine in SecureCRT.
Notes:
Question:
How do I know if the SecureCRT I am running is the 32-bit or 64-bit version?
Answer:
Look in the "About SecureCRT" window.
Question:
How do I know if the Python installer I downloaded is a 32-bit or 64-bit version?
Answer:
Typically the python.org installers will have "amd64" as part of the installer name if it's the 64-bit version. For example (64-bit): python-3.8.6-amd64.exe.
If you downloaded an installer that doesn't have "amd64" in the name, it's probably the 32-bit version. For example (32-bit): python-3.8.6.exe.
Python installation notes
When installing Python, you should enable the Add ... to PATH option so that SecureCRT will be able to find the Python DLL file for loading.
NOTE:
If you fail to enable the Add Python 3.x to PATH option, SecureCRT won't be able to find the Python 3 script engine.
Then, when you try to run a Python 3 script, SecureCRT will have no other option but to report: "Unable to load the Python scripting engine."
If you forget to have the Python installer add itself to the PATH environment variable, you can do it manually within Windows for your user account.
Can I use the Anaconda script engine instead?
While it is recommended that you use the python.org script engine, if you want to use Anaconda as your script engine…
# $language = "Python3" # $interface = "1.0" import sys import platform crt.Dialog.MessageBox( "sys.version_info:\r\n{}\r\n\r\nsys.version:\r\n{}\r\n\r\nsys.hexversion:\r\n{}\r\n\r\nplatform.python_version:\r\n{}".format( sys.version_info, sys.version, sys.hexversion, platform.python_version()))
The above code, when run in SecureCRT 9.0 after a successful Python 3 engine installation, will generate a window like this:
Notes:
VanDyke Software uses cookies to give you the best online experience. Before continuing to use this site, please confirm that you agree to our use of cookies. Please see our Cookie Usage for details.
Here you can control cookies using the checkboxes below. Some cookies are essential for the use of our website and cannot be disabled. Others provide a convenience to the user and, if disabled, may reduce the ease of use of our site. Finally, some cookies provide anonymous analytic tracking data that help us provide the user with a richer browsing experience. You can elect to disable these cookies as well.