Install For Fedora, CentOS, RHEL. We can install Python Idle in the Fedora, CentOS and RHEL distributions like below. $ sudo yum install idle Interactive Python Shell. The idle main window is an interactive Python shell. We can use this shell for simple and fast scripting. This console provides the following features. Creating and saving script. The Pycairo bindings are designed to match the cairo C API as closely as possible, and to deviate only in cases which are clearly better implemented in a more ‘Pythonic’ way. Pip install pycairo Installing Pycairo requires cairo including its headers.
edoelas wrote:I'm trying to install pycairo using pip with this order:
Your first problem is that you did not use pacman -S python2-cairo to install it. Why are you so desperately trying to use pip for everything? Especially if you have somehow installed a broken compiler toolchain?
edoelas wrote:I have a development version of binutils because the normal repo binutils did not work so I thought that maybe with the development version... (I have already reinstalled the normal repo version).
The repo binutils seems to work for everyone else, so why don't you provide details on what your problem is -- or stop using the development version of complex compiler tools such as binutils, if you're not prepared to become a binutils developer upon hitting bugs that don't exist in released versions.
edoelas wrote:I have tried to install shaape from the aur with the package python2-shaape-git but I get this output:
The AUR package is a pile of junk and has been broken ever since its initial submission nearly three years ago -- it does not include the required makedepends on python2-setuptools.
Pycairo is the binding for thecairo graphics library. It's also notsomething you can get running with a simple
pip install py2cairo
.After many hours of working the search engines and dancing to theconfigure/make/make install melody, I figured out an answer that workedfor me.How To Install Pycairo Install In Windows
If you don't have it yet, go gethttps://github.com/downloads/kennethreitz/osx-gcc-installer/GCC-10.7-v2.pkgand install it. It's 200 MB so make sure you have a fast connectionand/or a good place to wait.
I use Homebrew instead of Macports. If you don't have it yet, pastethis in a terminal prompt:
In your terminal prompt, type the following:
![How To Install Pycairo Install How To Install Pycairo Install](/uploads/1/1/9/7/119710941/331167917.png)
You'll get some messages about LDFLAGS and CPPFLAGS in build variables,but that's only important if you skip Homebrew and build your ownsoftware later that interacts with cairo.
The nasty little trick to this is to remember that Pycairo ispackaged on it's site and other places as py2cairo. When they getaround to releasing version 3 of Pycairo, I'm going to beg and pleadthat they follow an obvious naming system for their bundles. I know thisis done in other communities, but it's frustrating and a real barrierfor getting into a project.
How To Install Pycairo Install Kit
In case, in your terminal prompt, type the following:
If you are using a non-Homebrew installed Python like I do, you have toset the PYTHONPATH to find pycairo. Set your PYTHONPATH in your.bashrc/.profile/.whatever to the following:
Yes, it's the system Python, but for now I'm okay with it. If someonehas an easy recipe for alternative Python installations, I would love tolink to it.