Can't execute torch from my conda environement

Imene.b: <p>Hy everyone,<br>
I have installed torch in an environement called faster,<br>
and i activate it with conda activate faster<br>
but when i execute my code, it display that there is no module named torch,<br>
it seams that it execute from the base conda not form the environement,<br>
1- is there anyone who can tell me how to change it to execute from the environement?<br>
2- Is there a difference between torch and pytorch?<br>
there are the packages installed inmy envs:</p>
<h1>Name                    Version                   Build  Channel</h1>
<p>_libgcc_mutex             0.1                        main<br>
blas                      1.0                         mkl<br>
ca-certificates           2020.1.1                      0<br>
certifi                   2020.4.5.1               py36_0<br>
cffi                      1.14.0           py36he30daa8_1<br>
cuda100                   1.0                           0    pytorch<br>
cuda92                    1.0                           0    pytorch<br>
cycler                    0.10.0                   pypi_0    pypi<br>
cython                    0.29.20                  pypi_0    pypi<br>
easydict                  1.9                      pypi_0    pypi<br>
intel-openmp              2020.1                      217<br>
kiwisolver                1.2.0                    pypi_0    pypi<br>
ld_impl_linux-64          2.33.1               h53a641e_7<br>
libedit                   3.1.20181209         hc058e9b_0<br>
libffi                    3.3                  he6710b0_1<br>
libgcc-ng                 9.1.0                hdf63c60_0<br>
libgfortran-ng            7.3.0                hdf63c60_0<br>
libstdcxx-ng              9.1.0                hdf63c60_0<br>
matplotlib                3.2.1                    pypi_0    pypi<br>
mkl                       2020.1                      217<br>
mkl-service               2.3.0            py36he904b0f_0<br>
mkl_fft                   1.0.15           py36ha843d7b_0<br>
mkl_random                1.1.1            py36h0573a6f_0<br>
ncurses                   6.2                  he6710b0_1<br>
ninja                     1.9.0            py36hfd86e86_0<br>
numpy                     1.18.5                   pypi_0    pypi<br>
numpy-base                1.18.1           py36hde5b4d6_1<br>
opencv-python             4.2.0.34                 pypi_0    pypi<br>
openssl                   1.1.1g               h7b6447c_0<br>
pillow                    7.1.2                    pypi_0    pypi<br>
pip                       20.0.2                   py36_3<br>
pycparser                 2.20                       py_0<br>
pyparsing                 2.4.7                    pypi_0    pypi<br>
python                    3.6.10               h7579374_2<br>
python-dateutil           2.8.1                    pypi_0    pypi<br>
pytorch                   0.4.1           py36_cuda9.2.148_cudnn7.1.4_1  [cuda92]  pytorch<br>
pyyaml                    5.3.1                    pypi_0    pypi<br>
readline                  8.0                  h7b6447c_0<br>
scipy                     1.2.1                    pypi_0    pypi<br>
setuptools                47.1.1                   py36_0<br>
six                       1.15.0                     py_0<br>
sqlite                    3.31.1               h62c20be_1<br>
tk                        8.6.8                hbc83047_0<br>
torch                     1.0.0                    pypi_0    pypi<br>
torchvision               0.2.1                    pypi_0    pypi<br>
wheel                     0.34.2                   py36_0<br>
xz                        5.2.5                h7b6447c_0<br>
zlib                      1.2.11               h7b6447c_3</p>

ptrblck: <p>Are you executing the script in the terminal directly of in a Jupyer notebook?<br>
Sometimes, the default Python environment in a notebook is not set to the right one, so you might need to change it inside the notebook.</p>
<p>If you are using the terminal directly, do you see the environment name in front of the current user?</p>

Imene.b: <p>thanks for your replay, you are reight vs code use an other environement to execute the code, it work now.<br>
and please what is the differance between torch and pytorch in the execution?</p>

ptrblck: <p><code>pytorch</code> would be the package name, while you would have to use <code>import torch</code> inside the script.<br>
These are just names for the same package.</p>