Comments (9)
@Tuhin-thinks
Please try running the following to get it to install on Ubuntu:
cd /home/username/Programming/Repositories/
sudo git clone git://git.cairographics.org/git/pycairo
sudo apt-get install libcairo2-dev libjpeg-dev libgif-dev
cd pycairo
sudo python3 setup.py install
from langstats.
Same error
When I run pip3 install pycairo
it also craches with same error.
from langstats.
@enesdemirag Can you confirm that you are also on Ubuntu?
from langstats.
@Destaq Yes. Ubuntu 20.04
from langstats.
Alright, try the above command. If that doesn't work, try running this as well:
sudo apt-get install libcairo2-dev libjpeg-dev libgif-dev
I'm not an Ubuntu user, so I can't really comment as much as I'd want on this. I'm searching Stack Overflow and docs for you.
Also, make sure you have pkg-config
installed, you can install it with brew install pkg-config
.
from langstats.
If all else fails, this should do the trick:
sudo apt install libcairo2-dev
sudo apt install libgirepository1.0-dev
Please let me know if this works.
from langstats.
@Tuhin-thinks
Please try running the following to get it to install on Ubuntu:cd /home/username/Programming/Repositories/ sudo git clone git://git.cairographics.org/git/pycairo sudo apt-get install libcairo2-dev libjpeg-dev libgif-dev cd pycairo sudo python3 setup.py install
It works. After installing pycairo successfully, I ran python3 -m pip install -e .
inside the language-statistics repo and it's installed without any error. Thanks.
Reference thread: pygobject/pycairo#89 (comment)
from langstats.
@enesdemirag Super, I'm glad to hear that : ). I'll add the special installation for Ubuntu in the README, but since it seems like it works for you, I'm closing this issue until then. Please reopen it if there is any other issue. Happy statistics
-ing!
from langstats.
yes, I have installed the pycario package library and now, it's working fine.
from langstats.
Related Issues (2)
- Exclude directories? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langstats.