Use always
If do it without
Eg:
I user cmder and can use
From cmd can do it like this.
python
to execute a script.If do it without
python
can use a OS system python version,and not the one in virtual environment.Eg:
# Make environment G:\Anaconda3\Scripts λ conda create -n donkey scipy pandas requests # Activate enviroment G:\Anaconda3\Scripts λ activate donkey (donkey) G:\Anaconda3\ScriptsSo at this point can check that right python is used in virtual environment.
I user cmder and can use
which python
From cmd can do it like this.
(donkey) G:\Anaconda3\Scripts λ which python /g/Anaconda3/envs/donkey/python # cmd (donkey) G:\Anaconda3\Scripts λ python -c "import sys; print(sys.executable)" G:\Anaconda3\envs\donkey\python.exeSo when use
python my_script.py
it will use the Pandas version that i did make with conda create -n donkey scipy pandas requests