My problem
Problem 1:
I am using window 10 and I cannot find a way to automatically initialize python.exe for my interpreter. That's say I have a two interpreter called torchpy39 and tensorflow_environment The will show as folliowing
C:\Users\Brian\my_folder>C:/Users/Brian/anaconda3/Scripts/activate
(base) C:\Users\Brian\stock_prediction>conda activate torchpy39
(torchpy39) C:\Users\Brian\stock_prediction>C:/Users/Brian/anaconda3/envs/torchpy39/python.exe
and I can directlly use python, but when I use tensorflow_evnvironment, the python.exe
will not automatically execute. I will stop at activate tensorflow_environment
, how can I handle this?
Problem 2:
Another problem is that even I choose interpreter as tensorflow_environment
, if I press Shift
+ Enter
, the code will not execute in tensorflow_environment but in torchpy39. It seems that the system set my torchpy39 as defualt interpreter. How can I handle this as well?
What I have tried.
What I have done is that I have add the python.exe to env variable in my PC, but it does not help me to execute python when I start my venv in vs code.