Unexpected python paths in conda environment

This is expected behavior (see PEP 370) and partially why Anaconda recommended against user-level package installations. The site module is responsible for setting the sys.path when Python is initializing. The code in site.py specifically appends the user site prior to appending the prefix site, which is what leads to this prioritization. The motivation according to … Read more

anaconda – graphviz – can’t import after installation

The graphviz conda package is no Python package. It simply puts the graphviz files into your virtual env’s Library/ directory. Look e.g. for dot.exe in the Library/bin/ directory. To install the graphviz Python package, you can use pip: conda install pip and pip install graphviz. Always prefer conda packages if they are available over pip … Read more

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

PackagesNotFoundError: The following packages are not available from current channels:

Try adding the conda-forge channel to your list of channels with this command: conda config –append channels conda-forge. It tells conda to also look on the conda-forge channel when you search for packages. You can then simply install the two packages with conda install slycot control. Channels are basically servers for people to host packages … Read more

How to use Jupyter notebooks in a conda environment?

Disclaimer: ATM tested only in Ubuntu and Windows (see comments to this answer). Jupyter runs the user’s code in a separate process called kernel. The kernel can be a different Python installation (in a different conda environment or virtualenv or Python 2 instead of Python 3) or even an interpreter for a different language (e.g. … Read more

Is it still necessary to install CUDA before using the conda tensorflow-gpu package?

Do i now have two versions of CUDA installed and how do I check this? No. conda installs the bare minimum redistributable library components required to support the CUDA accelerated packages they offer. The package name cudatoolkit is a complete misnomer. It is nothing of the sort. Even though it is now greatly expanded in … Read more