如何在ubuntu中安装zipline?

时间:2015-11-16 10:56:06

标签: python ubuntu-14.04 apt zipline

我尝试在ubuntu 14.04中安装zipline,我尝试pip或git两者 当我尝试使用pip安装zipline时,这个错误是showa:

  najeeb@najeeb:~$ sudo -H pip install zipline
   Collecting zipline
   Downloading zipline-0.8.3.tar.gz (815kB)
   100% |████████████████████████████████| 815kB 161kB/s 
    Complete output from command python setup.py egg_info:
Requirement already satisfied (use --upgrade to upgrade): numpy==1.9.2 in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): Cython==0.22.1 in /usr/local/lib/python2.7/dist-packages
Traceback (most recent call last):
  File "<string>", line 20, in <module>
  File "/tmp/pip-build-j_BiQ5/zipline/setup.py", line 199, in <module>
    packages=find_packages('.', include=['zipline', 'zipline.*']),
TypeError: find_packages() got an unexpected keyword argument 'include'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-j_BiQ5/zipline

我希望有人帮助解决问题 enter image description here

3 个答案:

答案 0 :(得分:3)

尝试更新setuptoolsinclude参数find_packages was added in version 3.3。也许您正在运行旧版本?

为此,请使用:

pip install --upgrade setuptools

答案 1 :(得分:1)

我遇到了同样的问题。试试这种方式,它对我有用:

$ pip install numpy
$ pip install cython
$ pip install -U setuptools
$ pip install zipline

答案 2 :(得分:1)

据我了解,您尝试在系统中安装zipline。我建议使用conda环境。首先,安装anaconda访问https://anaconda.org/anaconda/python然后创建python环境并为您的项目安装唯一的包。这不会影响您的系统。在这之后。创造evn。

conda create --name my_env python=3

激活:

source activate my_env

信息

conda info --envs