I've tried to install pycairo in a virtualenv to use in a Django project. I've ran the pip install pycairo==1.10.0 command which finds the package and downloads it unlike other commands like pip install pycairo, etc. But when starting to install the package it throws an error. Although 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. You will need the cairo-dev/cairo-devel package for you os installed in order to build the package. The package libcairo2-dev is the latest version of the Cairo graphics library (1.10.2). Is there any way I can install version 1.8.10? I'm running 11.10, but would be. Do the following to install into your virtual environment: • download, unpack, and cd into the the py2cairo directory • Activate your virtual environment • Follow the standard build procedure./waf configure --prefix=$VIRTUAL_ENV./waf build./waf install. Pycairo currently does not support installation through pip/distutils. The project’s instructs to use either waf or autotools. To use pycairo in a virtualenv, you need to: • Install pycairo system-wide, preferably through your distribution’s packages • Then, either: • Create a virtualenv with the --system-site-packages option or remove the lib/pythonX.Y/no-global-site-packages.txt file after the fact. • Or add a symbolic link to the cairo package (the directory containing _cairo.so). ![]() Pycairo Install WindowsSomething like this: ln -s /usr/lib/python2.7/site-packages/cairo./venv/lib/python2.7/site-packages Of course 1. Has the downside that you will not profit from virtualenv’s isolation from other packages installed system-wide. For anyone trying to use pycairo (for Python 2. Dragon ball heroes game. 7) in conjunction with Homebrew and virtualenv --no-site-packages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |