Conda install osx-64 v1.10.0; To install this package with conda run one of the following: conda install -c vgauthier pycairo conda install -c vgauthier/label/py3k pycairo Description. Anaconda Cloud. Gallery About Documentation Support About Anaconda, Inc. Download Anaconda. Sudo pip3 install pysimplesoap. If the problem is with the package for Python 2, then use the appropriate version of pip:. Sudo pip2 install packagename.
While there is no known reason why Boxes.py should not run on Windowsthere is no upstream experience with doing so. The tricky part isgetting the cairo library installed and to run with the Python versionused. Python version and the architecture (32 or 64 bit) must match.
Getting the Inkscape plugins to run will likely need manualinstallation (see above). Note that Inkscape may come with its ownPython. If you run into trouble or have better installationinstructions please open a ticket on GitHub.
Native¶
Following steps are known to work under Windows 10 (64-bit):
- Go to https://www.python.org/downloads/windows/and download the “Windows x86-64 executable installer” for Python 3.7
- Install Python 3.7 and make sure to check “Add Python 3.7 to PATH”while doing so
- Go to https://www.lfd.uci.edu/~gohlke/pythonlibs/#cairocffiand download
cairocffi‑1.0.2‑cp37‑cp37m‑win_amd64.whl
- Go to https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycairoand download pycairo‑1.18.0‑cp37‑cp37m‑win_amd64.whl
- Open the Command Prompt(i.e. via the shortcut Windows + R and then typing “cmd”and pressing Enter)
- Change to the folder where the .whl files from step 3 and 4 are located(e.g. with the command
cdUsers[USERNAME]Downloads
where [USERNAME] is your username and Downloads the folder wherethe .whl files are located) - Run the command
pipinstallcairocffi‑1.0.2‑cp37‑cp37m‑win_amd64.whlpycairo‑1.18.0‑cp37‑cp37m‑win_amd64.whlMarkdownlxml
(Note: If the command pip is not found, you probably forgot to add thePython installation to the PATH environment variable in step 2) - Download Boxes.py as ZIP archive from GitHub
- Extract the ZIP archive(e.g. via the built-in Windows feature or other tools like 7-Zip)
- Change into the folder for Boxes.py,e.g. with the command
cdUsers[USERNAME]Downloadsboxes-master
- Run the development server with the command
pythonscriptsboxesserver
Note: You likely will be notified by your firewall that it blocked networkaccess. If you want to use boxesserver you need to allow connections. - Open the address http://localhost:8000/ in your browser and have fun :)
Additionally the command line version of Boxes.py can be used withthe command
pythonscriptsboxes
.Windows Subsystem for Linux¶
Another way of installing Boxes.py on Windows is to use the Windows Subsystemfor Linux (WSL). This requires newer versions of Windows 10. Once it isinstalled (e.g. via the Ubuntu App from the Microsoft Store), the installationis identical to the installation on Linux systems.
How do you install PyCairo (Cairo for Python) on Windows?
I spent hours this afternoon trying to find a straightforward tutorial for installing PyCairo on Windows.
The Cairo project itself does not maintain Windows binaries, they must be dowloaded elsehere (e.g. http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/).
The process is also complicated further apparently by the fact that MSVC is apparently not a supported compiler for PyCairo (although the source patch is simple). See this bug report:
https://www.libreoffice.org/bugzilla/show_bug.cgi?id=22940
Can anyone recommend a tutorial for installing PyCairo on Windows?
The Cairo project itself does not maintain Windows binaries, they must be dowloaded elsehere (e.g. http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/).
The process is also complicated further apparently by the fact that MSVC is apparently not a supported compiler for PyCairo (although the source patch is simple). See this bug report:
https://www.libreoffice.org/bugzilla/show_bug.cgi?id=22940
Can anyone recommend a tutorial for installing PyCairo on Windows?
Solutions/Answers:
Solution 1:
You should try windows binary installers from Gohlke repository for pyCairo and py2Cairo.
I never used pyCairo myself but took 4 minutes to install and get my first png example file done.
Solution 2:
Adding the following for completeness – joaquin’s answer above provides a simpler route (and Python 3 support).
Please see the following tutorial:
(also hosted at http://hal.elte.hu/~nepusz/development/igraph/tutorial/install.html).
I asked the question above, so that I could answer it myself. Hopefully people in a similar situation in future will find this post ?
While Googling “pycairo install windows” does give the above link, it is presented below some rather unhelpful pages, and it’s also not particularly obvious that igraph documentation will be applicable.
Eventually I got as far as installing PyCairo (from the GNOME link in the question), without Cairo itself. This gave me a DLL import error when I tried to use it. Fortunately, a question relating to this error exists on StackOverflow:
This question discusses the excellent tutorial from Tamas, linked above, which is all I needed to get up and running.
Solution 3:
I believe I have installed a copy using the pygtk all-in-one installer and I believe it did Just Work (32b, python2, mind you). They also mention the gnome URL in your post.
Solution 4:
install pygtk all in one
http://www.pygtk.org/downloads.html
It includes pygtk and all its dependencies, including pycairo
http://www.pygtk.org/downloads.html
It includes pygtk and all its dependencies, including pycairo
Solution 5:
A simple tutorial:
http://digitalpbk.blogspot.com.au/2012/03/installing-pygtk-pypango-and-pycairo-on.html
http://digitalpbk.blogspot.com.au/2012/03/installing-pygtk-pypango-and-pycairo-on.html
only 4 steps and worked like a charm.
Solution 6:
There is another similar question in StackOverflow: PyCairo – installation on Windows
The accepted answer is simple and practical.
Although the link it provided is outdated (because the version is up now), the idea is great.
I improve that answer to make it more general:
- Go to Unofficial Windows Binaries for Python Extension Packages – Pycairo
- Download the
pycairo‑***.whl
file (choose a proper version for your environment). - Go to the folder where you download the
.whl
file and typepip install pycairo-***.whl
. Wait a few seconds and everything would be done.
I have tested this method and it works perfectly.