Adds
Adds

Reputation: 631

How to check what version of Virtual Env is installed

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

Thank you

Upvotes: 16

Views: 52372

Answers (5)

Mahdi Bashirpour
Mahdi Bashirpour

Reputation: 18823

pip -V (notice capital V)

If you are running the virtual env, it'll show the path to the env.'s location.

Upvotes: 0

Vy Do
Vy Do

Reputation: 52606

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

Upvotes: 2

Malik Hamza
Malik Hamza

Reputation: 350

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

conda info --envs

Upvotes: 0

Alireza HI
Alireza HI

Reputation: 1933

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

Upvotes: 5

Paper-SSheets
Paper-SSheets

Reputation: 373

In your terminal use the command: virtualenv --version

Example output: 15.1.0

Upvotes: 23

Related Questions