check poetry version code example
Example 1: check package version jupyter python
import packagename
print(packagename.__version__)
Example 2: check pip version
pip --version
import packagename
print(packagename.__version__)
pip --version