I have installed paramiko 1.15.2 on Linux machine. But i want to know its version via command. Is there any command that prints out version of paramiko installed?
Asked
Active
Viewed 3.5k times
3 Answers
15
You can get it via the __version__
attribute.
#First, run python directly from terminal:
python
...
>>> import paramiko
>>> print paramiko.__version__
1.12.0

Akaisteph7
- 5,034
- 2
- 20
- 43

Igor Hatarist
- 5,234
- 2
- 32
- 45
6
You can also
pip show paramiko
Output would look like this
pip show paramiko
---
Name: paramiko
Version: 1.15.2
Location: /usr/local/lib/python2.7/dist-packages
Requires: pycrypto, ecdsa

Nik
- 61
- 1
- 1
2
print paramiko.__version__
Output:
'1.10.1'