Geek Logbook

Tech sea log book

How to now where is located my current python Virtual enviroment

If you are working in your machine with different virtual env perhaps you wondered “Wait a minute. What environment I’m working on?” There is two ways (I now to know that)

Using PIP:

pip -V      

Or using Python:

import sys
print(sys.prefix)

Source:

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *.