![how to install pycairo windows how to install pycairo windows](http://gwyddion.net/documentation/user-guide-en/win32-installer-upgrade.png)
![how to install pycairo windows how to install pycairo windows](https://aspblogs.blob.core.windows.net/media/bsimser/Media/PyGTK-HKLMNodeBefore.png)
It will always lead to problems in the long term, even if it seems to solve them in the short-term. Finally, because it often comes up, I should mention that you should never use sudo pip install. If you installed Python any other way from source, using pyenv, virtualenv, etc. If conda tells you the package you want doesn't exist, then use pip or try conda-forgewhich has more packages available than the default conda channel. If you installed Python using Anaconda or Miniconda, then use conda to install Python packages. If you already have a Python installation that you're using, then the choice of which to use is easy. I wrote way more than you ever want to know about these in a post last year, but the essential difference between the two is this. For many users, the choice between pip and conda can be a confusing one. jupyter 1.0.0įirst, a few words on pip vs. If you're just looking for a quick answer to the question, how do I install packages so they work with the notebookthen look no further. Other package managers exist including platform-specific tools like yumapthomebrewetc. This post will focus on two approaches to installing Python packages: pip and conda. ThirdI'll talk about some ideas the community might consider to help smooth-over these issues, including some changes that the Jupyter, Pip, and Conda developers might consider to ease the cognitive load on users. SecondI'll dive into some of the background of exactly what the Jupyter notebook abstraction is doing, how it interacts with the complexities of the operating system, and how you can think about where the "leaks" are, and thus better understand what's happening when things stop working. In the wake of several discussions on this topic with colleagues, some online exhibit Aexhibit B and some off, I decided to treat this issue in depth here.
![how to install pycairo windows how to install pycairo windows](https://pygobject.readthedocs.io/en/latest/_images/start_macos.png)
In other words, the Jupyter notebook, like all abstractions, is leaky. In the simplest contexts this issue does not arise, but when it does, debugging the problem requires knowledge of the intricacies of the operating system, the intricacies of Python package installation, and the intricacies of Jupyter itself. This issue is a perrennial source of StackOverflow questions e.įundamentally the problem is usually rooted in the fact that the Jupyter kernels are disconnected from Jupyter's shell in other words, the installer points to a different Python version than is being used in the notebook. I most often see this manifest itself with the following issue. In software, it's said that all abstractions are leakyand this is true for the Jupyter notebook as it is for any other software.