Sep-10-2020, 05:45 PM
In a previous post I inquired about how to activate and use a virtual environment once the virtual environment is created
in the Jupyter notebook.
I can now get and use the virtual environment even in the jupyter notebook IDE. However when I try to import something
as basic as numpy it says numpy module not found.
Yet, I installed numpy and a simply pip list or conda list will confirm that.
Again, I am talking only the virtual environment, not the basic environment.
The response when I type
python -V in the virtual environment is
Python 3.611
That is exactly what I want.
But, when I type
import sys
print(sys.path)
I get the sys.path for the basic environment, not the virtual. There is a different version of python etc. That explains why it cannot find numpy in my virtual environment. It is looking in the wrong place.
How do I get the virtual environment system path? Maybe a better question is can I get and use the VE sys.path? If I can how do I do it?
Any help appreciated. thanks in advance.
Respectfully,
ErnestTBass
in the Jupyter notebook.
I can now get and use the virtual environment even in the jupyter notebook IDE. However when I try to import something
as basic as numpy it says numpy module not found.
Yet, I installed numpy and a simply pip list or conda list will confirm that.
Again, I am talking only the virtual environment, not the basic environment.
The response when I type
python -V in the virtual environment is
Python 3.611
That is exactly what I want.
But, when I type
import sys
print(sys.path)
I get the sys.path for the basic environment, not the virtual. There is a different version of python etc. That explains why it cannot find numpy in my virtual environment. It is looking in the wrong place.
How do I get the virtual environment system path? Maybe a better question is can I get and use the VE sys.path? If I can how do I do it?
Any help appreciated. thanks in advance.
Respectfully,
ErnestTBass