![]() ![]() ![]() Or add a symbolic link to the cairo package (the directory containing _cairo.so).Create a virtualenv with the -system-site-packages option or remove the lib/pythonX.Y/no-global-site-packages.txt file after the fact.Install pycairo system-wide, preferably through your distribution’s packages.To use pycairo in a virtualenv, you need to: The project’s install docs instructs to use either waf or autotools. Pycairo currently does not support installation through pip/distutils. download, unpack, and cd into the the py2cairo directory.You will need the cairo-dev/cairo-devel package for you os installed in order to build the package.ĭo the following to install into your virtual environment: (Although the issue tracker might be a better channel than here.) Solution 2Īlthough py2cairo doesn't install nicely using pip, you can still install py2cairo into the virtual environment using the build instructions in the INSTALL file from the distribution. It’s a replacement for pycairo that installs with pip in a virtualenv, runs on Python 2 and 3, as well as PyPy.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |