How do I update Anaconda?

root is the old (pre-conda 4.4) name for the main environment; after conda 4.4, it was renamed to be base. source What 95% of people actually want In most cases what you want to do when you say that you want to update Anaconda is to execute the command: conda update –all (But this should … Read more

Using Pip to install packages to Anaconda Environment

For others who run into this situation, I found this to be the most straightforward solution: Run conda create -n venv_name and conda activate venv_name, where venv_name is the name of your virtual environment. Run conda install pip. This will install pip to your venv directory. Find your anaconda directory, and find the actual venv … Read more

How to change the Jupyter start-up folder

Jupyter Notebook and JupyterLab < 3.0 For old Jupyter Notebook interface installed with notebook package and run as jupyter notebook (see the next section for the identical interface installed with nbclassic and run with jupyter nbclassic, and for JupyterLab): Open cmd (or Anaconda Prompt) and run jupyter notebook –generate-config. This writes a file to C:\Users\username\.jupyter\jupyter_notebook_config.py. … Read more

How can I rename a conda environment?

New answer: From Conda 4.14 you will be able to use just: conda rename -n old_name -d new_name Although, under the hood, conda rename still uses [1][2] undermentioned combination of conda create and conda remove. Old answer: You can’t. One workaround is to create clone a new environment and then remove the original one. First, … Read more

Conda environments not showing up in Jupyter Notebook

I don’t think the other answers are working any more, as conda stopped automatically setting environments up as jupyter kernels. You need to manually add kernels for each environment in the following way: source activate myenv python -m ipykernel install –user –name myenv –display-name “Python (myenv)” As documented here:http://ipython.readthedocs.io/en/stable/install/kernel_install.html#kernels-for-different-environments Also see this issue. Addendum: You … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)