14

I wanted to know what version of virtual env is installed ? My OS is windows 10

Thank you

Adds
  • 601
  • 2
  • 12
  • 24

4 Answers4

19

In your terminal use the command: virtualenv --version

Example output: 15.1.0

Paper-SSheets
  • 333
  • 2
  • 8
4

If you mean the module that is used in python you can check them with pip freeze or pip3 freeze based on the package manager you use.

So it would be like below:

pip freeze | grep virtualenv

output:

virtualenv==16.0.0
Alireza HI
  • 1,873
  • 1
  • 12
  • 20
  • I am using Windows CMD. The grep command is not recognized, I used pip freeze and it also showed me all the version and installed packages so +1. – Adds Aug 08 '19 at 19:30
  • @Adds for Windows use `findstr` instead, as `pip freeze | findstr virtualenv`. The `grep` or commonly Global Regular Expression Print is used as regex parser command-line utility for searching plain-text data sets for lines in UNIX based OS. `findstr` does the same. – Shubham Srivastava Jun 13 '20 at 15:18
1
C:\Users\donhu\temp2023_01_08>python -m virtualenv --version
virtualenv 20.17.1 from C:\Users\donhu\AppData\Roaming\Python\Python310\site-packages\virtualenv\__init__.py

enter image description here

Vy Do
  • 46,709
  • 59
  • 215
  • 313
0

If you are using Windows and Conda environment. You can use this command to see Virtual Environments:

conda info --envs
Malik Hamza
  • 181
  • 1
  • 10