How do I import external modules to 3d slicer?

Operating system: window 10
Slicer version: 5.2.1

When creating extension code, import external libraries (e.g paramiko, etc) as follows.

# some extension codes

import paramiko
import ....

In a general IDE, a virtual environment is built using Anaconda and then packages are installed (in python). or using c-make (in c++) How can I add the above packages to 3D Slicer?

You should be able to do pip_install("paramiko") in the Slicer python console and the import.