Official releases of seaborn can be installed from PyPI:
- Install Pandas For Python 3 Mac Terminal
- Install Pandas For Python 3 Mac Brew
- Python 3 Install Pip Mac
- Pip Install Pandas Python 3 Mac
- Pycharm
The library is also included as part of the Anaconda distribution:
Install Pandas For Python 3 Mac Terminal
After installing Miniconda, I created a new environment area to get Pandas reinstalled and imported. This new environment included the current Python version 3.6.3. I could not import Pandas using Python 3.4.4. Choose whether to register Anaconda as your default Python. Unless you plan on installing and running multiple versions of Anaconda or multiple versions of Python, accept the default and leave this box checked. Click the Install button. If you want to watch the packages Anaconda is installing, click Show Details. Click the Next button.
Dependencies¶
Required dependencies¶
If not already present, these libraries will be downloaded when you install seaborn.
Optional dependencies¶
- statsmodels, for advanced regression plots
- fastcluster, for clustering large matrices
Quickstart¶
Once you have seaborn installed, you’re ready to get started.To test it out, you could load and plot one of the example datasets:
If you’re working in a Jupyter notebook or an IPython terminal withmatplotlib modeenabled, you should immediately see the plot.Otherwise, you may need to explicitly call
matplotlib.pyplot.show()
:While you can get pretty far with only seaborn imported, having access tomatplotlib functions is often useful. The tutorials and API documentationtypically assume the following imports:
Debugging install issues¶
The seaborn codebase is pure Python, and the library should generally installwithout issue. Occasionally, difficulties will arise because the dependenciesinclude compiled code and link to system libraries. These difficultiestypically manifest as errors on import with messages such as
'DLLloadfailed'
. To debug such problems, read through the exception trace tofigure out which specific library failed to import, and then consult theinstallation docs for that package to see if they have tips for your particularsystem.In some cases, an installation of seaborn will appear to succeed, but tryingto import it will raise an error with the message
'Nomodulenamedseaborn'
. This usually means that you have multiple Python installations onyour system and that your pip
or conda
points towards a differentinstallation than where your interpreter lives. Resolving this issuewill involve sorting out the paths on your system, but it can sometimes beavoided by invoking pip
with python-mpipinstallseaborn
.Getting help¶
If you think you’ve encountered a bug in seaborn, please report it on theGitHub issue tracker.To be useful, bug reports must include the following information:
- A reproducible code example that demonstrates the problem
- The output that you are seeing (an image of a plot, or the error message)
- A clear explanation of why you think something is wrong
- The specific versions of seaborn and matplotlib that you are working with
Bug reports are easiest to address if they can be demonstrated using one of theexample datasets from the seaborn docs (i.e. with
load_dataset()
).Otherwise, it is preferable that your example generate synthetic data toreproduce the problem. If you can only demonstrate the issue with youractual dataset, you will need to share it, ideally as a csv.If you’ve encountered an error, searching the specific text of the messagebefore opening a new issue can often help you solve the problem quickly andavoid making a duplicate report.
Install Pandas For Python 3 Mac Brew
Because matplotlib handles the actual rendering, errors or incorrect outputsmay be due to a problem in matplotlib rather than one in seaborn. It can save timeif you try to reproduce the issue in an example that uses only matplotlib,so that you can report it in the right place. But it is alright to skip thisstep if it’s not obvious how to do it.
General support questions are more at home on either stackoverflow or discourse, which have a largeraudience of people who will see your post and may be able to offerassistance. StackOverflow is better for specific issues, while discourse isbetter for more open-ended discussion. Your chance of getting a quick answerwill be higher if you include runnable code, a precisestatement of what you are hoping to achieve, and a clear explanation of theproblems that you have encountered.
Prerequisites¶
- xlwings requires an installation of Excel and therefore only works on Windows and macOS. Note that macOS currently does not support UDFs.
- xlwings requires at least Python 3.6.
Last version of xlwings to support
- Python 3.5: 0.19.5
- Python 2.7: 0.16.6
Installation¶
xlwings comes pre-installed with Anaconda. If you are new to Python or have troubles installing xlwings, Anaconda is highly recommended. Otherwise you can also install it manually with pip:
or conda:
Note that the official
conda
package might be few releases behind. You can, however,use the conda-forge
channel (replace install
with upgrade
if xlwings is already installed):Note
Resident evil 4 wii edition wad. When you are on macOS and are installing xlwings with
conda
(or use the version that comes with Anaconda),you’ll need to run $xlwingsrunpythoninstall
once to enable the RunPython
calls from VBA. This is done automatically if you install the addin via $xlwingsaddininstall
.Add-in¶
To install the add-in, run the following command:
To call Excel from Python, you don’t need an add-in. Also, you can use a single file VBA module instead of the add-in. For more details, see Add-in & Settings.
Note
Microsoft office word dowloand. The add-in needs to be the same version as the Python package. Make sure to re-install the add-in after upgrading the xlwings package.
Dependencies¶
- Windows:
pywin32
,comtypes
- Mac:
psutil
,appscript
The dependencies are automatically installed via
conda
or pip
.How to activate xlwings PRO¶
xlwings PRO offers access to additional functionality. All PRO features are marked with xlwings PRO in the docs.
Python 3 Install Pip Mac
Note
To get access to the additional functionality of xlwings PRO, you need a license key and at least xlwings v0.19.0. Everything under the
xlwings.pro
subpackage is distributed under a commercial license. See xlwings PRO for more details.To activate the license key, run the following command:
This will store the license key under your
xlwings.conf
file in your home folder. Alternatively, you can also store the license key under an environment variable with the name XLWINGS_LICENSE_KEY
.xlwings PRO requires additionally the
cryptography
and Jinja2
packages which come pre-installed with Anaconda. Otherwise, install them via pip or conda.With pip, you can also run
pipinstall'xlwings[pro]'
which will take care of the extra dependencies for xlwings PRO.Optional Dependencies¶
- NumPy
- Pandas
- Matplotlib
- Pillow/PIL
- Flask (for REST API)
- cryptography (for xlwings PRO)
- Jinja2 (for xlwings PRO)
These packages are not required but highly recommended as they play very nicely with xlwings. They are all pre-installed with Anaconda. With pip, you can install xlwings with all optional dependencies as follows:
Update¶
To update to the latest xlwings version, run the following in a command prompt:
or:
Make sure to keep your version of the Excel add-in in sync with your Python package by running the following (make sure to close Excel first):
Uninstall¶
Pip Install Pandas Python 3 Mac
To uninstall xlwings completely, first uninstall the add-in, then uninstall the xlwings package using the same method (pip or conda) that you used for installing it:
Pycharm
Then
or:
Finally, manually remove the .xlwings directory in your home folder if it exists.