TulipCharts / tulipy

[NOT ACTIVELY MAINTAINED] Tulipy - Financial Technical Analysis Indicator Library (Python bindings for Tulip Charts)
https://github.com/TulipCharts/tulipindicators
GNU Lesser General Public License v3.0
330 stars 83 forks source link

Can't install tulipy in Debian #27

Closed xuanngo2001 closed 5 years ago

xuanngo2001 commented 5 years ago

I ran

pip3 install tulipy

It gives the following errors:

                       ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-nzh81hjq/tulipy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-wkq0j4eo-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-nzh81hjq/tulipy/

I have the following packages installed in my system:

>pip3 show numpy Cython wheel
Name: numpy
Version: 1.16.2
---
Name: Cython
Version: 0.29.6
---
Name: wheel
Version: 0.33.1
codeplea commented 5 years ago

Try this: sudo apt-get install build-essential

xuanngo2001 commented 5 years ago

@codeplea I solve the issue by installing python-dev: apt-get install python3-dev

But I don't understand why the python development package is needed.

I would rather not installing this extra package as it would require 60MB and I'm running my operating system on the RAM.

codeplea commented 5 years ago

Tulip Indicators is programmed in C, so you have to be able to compile it. You could always compile it on a separate machine and then copy it over. Alternatively, I think you can probably uninstall python3-dev after installing tulipy.

Why are you running on RAM?

xuanngo2001 commented 5 years ago

I run my OS in RAM because I pack all apps that I need into an ISO and boot it through USB.

By the way, thx for your effort in creating Tulip Indicators library.