python - Can't install package inside virtualenv -
i have following environment:
linux mint17.1 comes pre-installed python 2.7.6.
i setup altinstall python 3.3.5
using python 3.3 created virtualenv
i trying install ta-lib in virtual env not having success.
if try install with:
./easy_install ta-lib
i following error:
searching ta-lib reading https://pypi.python.org/simple/ta-lib/ reading http://github.com/mrjbq7/ta-lib reading https://github.com/mrjbq7/ta-lib/releases best match: ta-lib 0.4.8 downloading https://github.com/mrjbq7/ta-lib/archive/ta_lib-0.4.8.zip processing ta_lib-0.4.8.zip writing /tmp/easy_install-67a3vk/ta-lib-ta_lib-0.4.8/setup.cfg running ta-lib-ta_lib-0.4.8/setup.py -q bdist_egg --dist-dir/tmp/easy_install-67a3vk/ta-lib-ta_lib-0.4.8/egg-dist-tmp-w24p9n /tmp/easy_install-67a3vk/ta-lib-ta_lib-0.4.8/setup.py:49: userwarning: cannot find ta-lib library, installation may fail. warnings.warn('cannot find ta-lib library, installation may fail.') talib/common.c:314:28: fatal error: ta-lib/ta_defs.h: no such file or directory #include "ta-lib/ta_defs.h" ^ compilation terminated. error: setup script exited error: command 'gcc' failed exit status 1
if try install with:
./pip install https://github.com/mrjbq7/ta-lib/archive/ta_lib-0.4.8.tar.gz
i following error:
downloading/unpacking https://github.com/mrjbq7/ta-lib/archive/ta_lib-0.4.8.tar.gz downloading ta_lib-0.4.8.tar.gz (unknown size): 544kb downloaded running setup.py (path:/tmp/pip-rxvyyh-build/setup.py) egg_info package https://github.com/mrjbq7/ta-lib/archive/ta_lib-0.4.8.tar.gz /tmp/pip-rxvyyh-build/setup.py:49: userwarning: cannot find ta-lib library, installation may fail. warnings.warn('cannot find ta-lib library, installation may fail.') installing collected packages: ta-lib running setup.py install ta-lib ...removed make post shorter... compilation terminated. /tmp/pip-rxvyyh-build/setup.py:49: userwarning: cannot find ta-lib library, installation may fail. warnings.warn('cannot find ta-lib library, installation may fail.') error: command 'gcc' failed exit status 1
so both approaches result in final error of:
command 'gcc' failed exit status 1
i have no problem installing other packages such numpy, pandas, matplotlib etc in virtualenv. ta-lib not working.
you don't have installed underlying ta-lib library. can find more info on project site https://github.com/mrjbq7/ta-lib :
sometimes installation produce build errors this:
func.c:256:28: fatal error: ta-lib/ta_libc.h: no such file or directory compilation terminated.
this typically means can't find underlying ta-lib library, dependency needs installed.
Comments
Post a Comment