So I am using vscode with conda (for a django project), and trying to activate my virtual environment named "venv". And it goes from:
(base) C:\Users\User\Desktop\pfa-master\pfa-master\venv\Scripts> .\activate
to something like this:
(venv) (base) C:\Users\User\Desktop\pfa-master\pfa-master\venv\Scripts>
And if I try to find out Python version, it shows error like this:
(venv) (base) C:\Users\User\Desktop\pfa-master\pfa-master>which python
'which' is not recognized as an internal or external command,
operable program or batch file.
Note: I have Python in environment variables for anaconda.
What am I doing wrong?
You need to deactivate Conda. In terminal, conda deactivate should get rid of (base). When you want to reactivate Conda, conda activate.
You have two virtual environments active.
conda and virtualenv are both package manager and environment management system :
If you want to use (venv) only, you need to deactivate conda : conda deactivate
If you want to use (base) only, you need to delete the venv directory from your repository :
sudo rm -rf venv. Command differs because you are using Windows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With