Install¶
From Pypi¶
You need to install cython before pymarketcap. Try: pip3 install Cython
and then:
pip3 install pymarketcap
- On Windows will be used
urllib
library to make synchronous requests and on Linux/Mac will be build against libcurl C library. You can control this (see below):
From source¶
git clone https://github.com/mondeja/pymarketcap.git
cd pymarketcap
pip3 install -r requirements.txt
python setup.py install
- To force installation with libcurl, use
--force-curl
in last command. - To install with urllib, use
--no-curl
.
Known install issues¶
pymarketcap/core.c:16:20: fatal error: Python.h: No such file or directory
- Solution (Linux):
sudo apt-get install python3-dev
pymarketcap/curl.c:581:23: fatal error: curl/curl.h: No such file or directory
- Solution (Linux):
sudo apt-get install libcurl4-openssl-dev