Python Pip安装Zipline-fortran编译器的问题

Python Pip安装Zipline-fortran编译器的问题,python,numpy,module,pip,zipline,Python,Numpy,Module,Pip,Zipline,我正在尝试用python安装zipline模块,numpy和scipy都是最新的,pip也是最新的,但是我仍然在fortran编译器中遇到这个错误-如果有任何帮助,我将不胜感激 C02PP0M7F8J2:~ bracea$ pip install zipline Collecting zipline /Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ss

我正在尝试用python安装zipline模块,numpy和scipy都是最新的,pip也是最新的,但是我仍然在fortran编译器中遇到这个错误-如果有任何帮助,我将不胜感激

C02PP0M7F8J2:~ bracea$ pip install zipline
Collecting zipline
/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Using cached zipline-0.8.3.tar.gz
    Complete output from command python setup.py egg_info:
    Collecting numpy==1.9.2
    /Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
      InsecurePlatformWarning
      Using cached numpy-1.9.2-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
    Installing collected packages: numpy
      Found existing installation: numpy 1.10.1
        Uninstalling numpy-1.10.1:
    Exception:
    Traceback (most recent call last):
      File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/basecommand.py", line 211, in main
        status = self.run(options, args)
      File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/commands/install.py", line 311, in run
        root=options.root_path,
      File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_set.py", line 640, in install
        requirement.uninstall(auto_confirm=True)
      File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_install.py", line 716, in uninstall
        paths_to_remove.remove(auto_confirm)
      File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_uninstall.py", line 125, in remove
        renames(path, new_path)
      File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/utils/__init__.py", line 315, in renames
        shutil.move(old, new)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
        os.unlink(src)
    OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/numpy-1.10.1.dist-info/DESCRIPTION.rst'
    Requirement already satisfied (use --upgrade to upgrade): Cython==0.22.1 in /Library/Python/2.7/site-packages
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/private/var/folders/2n/dj16vyjd5fjc6ppvzwbbhbw4_np44v/T/pip-build-CfLz1b/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 /private/var/folders/2n/dj16vyjd5fjc6ppvzwbbhbw4_np44v/T/pip-build-CfLz1b/zipline
C02PP0M7F8J2:~bracea$pip安装拉链
收集拉链
/Library/Python/2.7/site packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90:InsurePlatformWarning:真正的SSLContext对象不可用。这会阻止urllib3正确配置SSL,并可能导致某些SSL连接失败。有关详细信息,请参阅https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
不安全平台警告
使用缓存的zipline-0.8.3.tar.gz
从命令python setup.py egg_info完成输出:
收集numpy==1.9.2
/Library/Python/2.7/site packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90:InsurePlatformWarning:真正的SSLContext对象不可用。这会阻止urllib3正确配置SSL,并可能导致某些SSL连接失败。有关详细信息,请参阅https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
不安全平台警告
使用缓存的numpy-1.9.2-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
安装收集的软件包:numpy
找到现有安装:numpy 1.10.1
卸载numpy-1.10.1:
例外情况:
回溯(最近一次呼叫最后一次):
文件“/Library/Python/2.7/site packages/pip-7.1.2-py2.7.egg/pip/basecommand.py”,第211行,在main中
status=self.run(选项、参数)
文件“/Library/Python/2.7/site packages/pip-7.1.2-py2.7.egg/pip/commands/install.py”,第311行,运行中
root=options.root\u路径,
文件“/Library/Python/2.7/site packages/pip-7.1.2-py2.7.egg/pip/req/req_set.py”,第640行,安装中
要求.卸载(自动确认=True)
卸载中第716行的文件“/Library/Python/2.7/site packages/pip-7.1.2-py2.7.egg/pip/req/req_install.py”
路径到移除。移除(自动确认)
文件“/Library/Python/2.7/site packages/pip-7.1.2-py2.7.egg/pip/req/req_uninstall.py”,删除中的第125行
重命名(路径,新路径)
文件“/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/utils/_init___;.py”,第315行,在重命名中
shutil.移动(旧、新)
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py”,第302行,移动中
操作系统取消链接(src)
OSError:[Errno 13]权限被拒绝:'/Library/Python/2.7/site packages/numpy-1.10.1.dist info/DESCRIPTION.rst'
已满足要求(使用--升级到升级):Cython==0.22.1 in/Library/Python/2.7/site-packages
回溯(最近一次呼叫最后一次):
文件“”,第20行,在
文件“/private/var/folders/2n/dj16vyjd5fjc6ppvzwbbhbw4_np44v/T/pip-build-CfLz1b/zipline/setup.py”,第199行,在
packages=find_packages('.',include=['zipline','zipline.*']),
TypeError:find_packages()获得意外的关键字参数“include”
----------------------------------------
命令“python setup.py egg_info”在/private/var/folders/2n/dj16vyjd5fjc6ppvzwbbhbw4_np44v/T/pip-build-CfLz1b/zipline中失败,错误代码为1

在我看来似乎是权限错误。Pip正在尝试更新numpy包。检查以下各项:

    Collecting numpy==1.9.2
/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Using cached numpy-1.9.2-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Installing collected packages: numpy
  Found existing installation: numpy 1.10.1
    Uninstalling numpy-1.10.1:
然后是错误:

    OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/numpy-1.10.1.dist-info/DESCRIPTION.rst'
尝试使用root权限执行此操作。不过,我建议您在虚拟环境中安装它,而不是修改系统python