Tips, Tricks, and Frequently Asked Questions

This section provides answers to specific questions raised by users, tips for using the environment, and other specific suggestions.

Where are all of the Python packages in my Canopy Python Environments?

Canopy 2 provides you with Python environments installed and managed by the Enthought Deployment Manager (EDM). The default Python environment is named “User”, and you may also create and switch to other environments (See “Switching Python Environments”.)

The “Settings” pane in Canopy’s Package Manager will show you the exact location of the Canopy Python environment currently active in Canopy. The default locations are:

Platform Arch Location
Windows 64 C:\Users\<username>\AppData\Local\Enthought\Canopy\edm\envs\<envname>
Windows 32 C:\Users\<username>\AppData\Local\Enthought\Canopy32\edm\envs\<envname>
Mac OSX 64 ~/Library/Enthought/Canopy/edm/envs/<envname>
Linux 64 ~/.local/share/canopy/edm/envs/<envname>

<username> should be replaced by your Windows username, and <envname> should be replaced by the name of your currently active Canopy Python environment (initially, the default “User” environment).

You can also locate your currently active environment by typing import sys;sys.prefix in Canopy’s Python panel.

Do not manually delete Canopy 2 Python environments. Instead, delete them as described in ”:ref:`python_environments`”.

Canopy 1.x used a venv-based virtual User Python environment with different default locations.

Where are the preference and log files located?

Usually, users will not need to reference these files. Most preferences are usually set from the Preferences dialog in the GUI. If there is a GUI error, a dialog should ask you if you want to report it, which should send the relevant log file to Enthought.

However, if you need to access these files, here are their platform-specific locations:

Platform Location
Windows C:\Users\<user>\AppData\Roaming\Enthought\Canopy\preferences.ini
Mac OSX ~/.canopy/preferences.ini
Linux ~/.canopy/preferences.ini