How to convert the following codes in VS Code terminal?
conda create -n cluster_topic_model python=3.7 -y
conda activate cluster_topic_model
CodePudding user response:
The same has been provided in the comment as well. Leaving it here for the rest.
This is what I did.
- Open your VSCode to your desired directory.
- Then press
Ctrl Shit P
which opens a section prompting which interpreter to use. - Select the python interpreter of your choice.
- Now assuming you have Anaconda installed on your local device.
- Now you should again press
Ctrl Shit P
and choose your Python kernel as(base)
which has theconda
environment. - Now go to the
Terminal
tab on the menu bar and open a new terminal.
Hope this helps!
Crucial part: You have to open a cmd
terminal now and then you can go ahead with your code.