Issue
I am new to virtual environment concept in python and I am confused with something which may arise because of my lack of knowledge in general computer science. I know that whenever I want to create a python .py file in spyder, I set my desired directory as my working directory in spyder (for example driver D). What if I want to create a virtual directory? I mean I've created a virtual directory with some instructions on the internet and it successfully created in this path:
C:\Users\my_name\AppData\Local\Continuum\anaconda3\envs
If I want to create a new python .py file in that virtual environmrnt, should I set the directory in spyder, the above mentioned path?
Solution
You don't need to create a python file in that directory, you can create it anywhere in any directory. You just need to activate/choose the environment before running that python file.
Also virtual environments can be created anywhere but that's not recommended.
Answered By - Bal Krishna Jha