Forum Discussion
From what I understand, TestComplete comes with minimal installation of Python, and each version of TestComplete comes with a version of Python. TestComplete v15.42.9.7 x64 comes with Python 3.8.10 x64.
Therefore, you need to download the same version of Python and follow Python - Specifics of Usage
Alternative method, is to open WHL file and extract the folder to e.g. <TestComplete>\x64\Bin\Extensions\Python\Python38\Lib (depending on your version) and use
import sys
sys.path.insert(0, "<TestComplete>\x64\Bin\Extensions\Python\Python38\Lib\site-packages")
import your_library_name
I have pycurl here
C:\Program Files (x86)\SmartBear\TestComplete 15\Bin\Extensions\Python\Python38\Lib\site-packages\curl
My Code
from os import sys
sys.path.insert(0, 'C:\Program Files (x86)\SmartBear\TestComplete 15\Bin\Extensions\Python\Python38\Lib\site-packages')
def test2():
curl = pycurl.Curl()
Generates the error: Python runtime error
ModuleNotFoundError: No module named 'pycurl'
Related Content
- 2 years ago
- 5 years ago
- 5 years ago
- 5 years ago
Recent Discussions
- 19 hours ago
- 7 days ago
- 10 days ago