How do I keep track of pip-installed packages in an Anaconda (Conda) environment?

conda-env now does this automatically (if pip was installed with conda). You can see how this works by using the export tool used for migrating an environment: conda env export -n <env-name> > environment.yml The file will list both conda packages and pip packages: name: stats channels: – javascript dependencies: – python=3.4 – bokeh=0.9.2 – … Read more

How to add conda environment to jupyter lab

Assuming your conda-env is named cenv, it is as simple as : $ conda activate cenv # . ./cenv/bin/activate in case of virtualenv (cenv)$ conda install ipykernel (cenv)$ ipython kernel install –user –name=<any_name_for_kernel> (cenv)$ conda deactivate If you restart your jupyter notebook/lab you will be able to see the new kernel available. For newer versions … Read more

Conda command is not recognized on Windows 10

In Windows, you will have to set the path to the location where you installed Anaconda3 to. For me, I installed anaconda3 into C:\Anaconda3. Therefore you need to add C:\Anaconda3 as well as C:\Anaconda3\Scripts\ to your path variable, e.g. set PATH=%PATH%;C:\Anaconda3;C:\Anaconda3\Scripts\. You can do this via powershell (see above, https://msdn.microsoft.com/en-us/library/windows/desktop/bb776899(v=vs.85).aspx ), or hit the windows … Read more

How to install 2 Anacondas (Python 2 and 3) on Mac OS

There is no need to install Anaconda again. Conda, the package manager for Anaconda, fully supports separated environments. The easiest way to create an environment for Python 2.7 is to do conda create -n python2 python=2.7 anaconda This will create an environment named python2 that contains the Python 2.7 version of Anaconda. You can activate … Read more

How to uninstall Anaconda completely from macOS

To remove the configs: conda install anaconda-clean anaconda-clean –yes Once the configs are removed you can delete the anaconda install folder, which is usually under your home dir: rm -rf ~/anaconda3 Also, the anaconda-clean –yes command creates a backup in your home directory of the format ~/.anaconda_backup/<timestamp>. Make sure to delete that one also. EDIT … Read more

Combining conda environment.yml with pip requirements.txt

Pip dependencies can be included in the environment.yml file like this (docs): # run: conda env create –file environment.yml name: test-env dependencies: – python>=3.5 – anaconda – pip – numpy=1.13.3 # pin version for conda – pip: # works for regular pip packages – docx – gooey – matplotlib==2.0.0 # pin version for pip # … Read more

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