bommareddy
6 years agoContributor
How to download and add external Python packages in TC 14
Hello All,
Can anyone suggest me step by step process to download and add external Python packages in TC 14.
I tried the following, but I didn't have any luck
https://support.smartbear.com/testcomplete/docs/scripting/specifics/python.html
from os import sys
sys.path.insert(0, '%PATH_TO_PYTHON_DIRECTORY%\Lib\site-packages') import requests #--> getting error i.e. requests module doesn't found
And do I need to install python in my machine? I guess python is inbuilt with TC . Am i right?
-BommaReddy
Python has a specific install in TestComplete that TestComplete uses to run.
This requests package. Is it part of Python? Is it custom?
In order for TestComplete to find the package, it needs to be placed in the specific TestComplete folder (see https://support.smartbear.com/testcomplete/docs/scripting/specifics/python.html#importing-packages). If you don't have it there, it can't find the module.