Files
2021-10-05 16:34:28 +02:00

1.3 KiB

Steps to Follow:

  • Go to the Anaconda webpage and download the individual open source distribution.
  • One you have downloaded and installed Anaconda, Open a terminal and type in : conda -V, The corresponding conda version must be in the output.
  • Conda Cheat Sheet is your new best friend.
  • Initialize a new environment variable: It is always best practice to lay down a project in a separate environment:
    • See actual environments: conda env list
    • Creating environment with python version 3.8: conda create --name myEnv python=3.8
    • Activate the environment: conda activate myEnv
    • Install packages one by one with conda install package or per requirements.txt file: conda install --file requirements.txt (Analogous to the npm install with Package.json)
    • Check installed packages: conda list

Note: In order to use Jupyter Notebooks using Visual Studio Code, you need to install the package ipykernel and notebook in both base and your environment. After activating the new environment, by finally running python -m ipykernel install --user --name=myEnv, you can attach the kernel to your environment variable and have access to all the packages in that environment.