Hi all I hope I can get some help with this. I am on Windows XP, using Python 2.7.12 and command prompt.
I have written a programme balances.py which uses prettytable
package. This is installed in my main C:\Python27\Lib\site-packages
folder.
I just created a virtual environment:
C:\Environments\virtualenv p1_env
and activate the environment:
C:\Environments\p1_env\Scripts\activate
Now I am in p1_env:
(p1_env)C:\
and navigate to <p1_env>C:\Python Projects\balances.py
and it runs the script even though I have not installed prettytable
in p1_env
pip list
for main python installation is
virtualenv, setuptools, pip, prettytable
and the pip list
for p1_env is
pip, setuptools, wheel
When i run the script balances.py in p1_env
it still runs with prettytable
.
My question is why is balances.py running in p1_env
even though prettytable
is not installed in p1_env
?