Sep-10-2020, 06:36 PM
I know that I am in the right environment because a pip or conda list sows the modules or libraries that I installed for this project. The modules and the python version are not the same as in the basic environment.
They are different which is why I created the virtual environment in the first place.
A simple command like:
python -V
will reveal which environment I am in. I installed numpy in my VE, and it installed fine. However, the python interpreter can not find numpy when i run my program in the VE because it is not in the sys.path.
I do not know if each VE has its own sys.path or if there is one global sys.path and that is it.
Any help appreciated. thanks in advance.
Respectfully,
ErnestTBass
They are different which is why I created the virtual environment in the first place.
A simple command like:
python -V
will reveal which environment I am in. I installed numpy in my VE, and it installed fine. However, the python interpreter can not find numpy when i run my program in the VE because it is not in the sys.path.
I do not know if each VE has its own sys.path or if there is one global sys.path and that is it.
Any help appreciated. thanks in advance.
Respectfully,
ErnestTBass