Python Install pip3 Install quandl-返回清除加密的生成目录失败

Python Install pip3 Install quandl-返回清除加密的生成目录失败,python,ubuntu-16.04,Python,Ubuntu 16.04,我有以下配置 Ubuntu 16.04 LTS Python 3.5 pip 8.1.1 cffi 1.8.3 IDE PyCharm 2.3(不重要,只是以防万一) 我已经用PIP和setup.py-检查了Python加密包中的文章。一切似乎都没有结果 我有最新版本的模块(setuptools e.t.c.) 它似乎正在尝试构建一个构造函数,并发现一些不匹配的版本 File "/tmp/pip-build-nrsep1ln/cryptography/src/_cffi_

我有以下配置

  • Ubuntu 16.04 LTS
  • Python 3.5
  • pip 8.1.1
  • cffi 1.8.3
  • IDE PyCharm 2.3(不重要,只是以防万一)
我已经用PIP和setup.py-检查了Python加密包中的文章。一切似乎都没有结果

我有最新版本的模块(setuptools e.t.c.)

它似乎正在尝试构建一个构造函数,并发现一些不匹配的版本

          File "/tmp/pip-build-nrsep1ln/cryptography/src/_cffi_src/utils.py", line 69, in build_ffi
      ffi = FFI()
    File "/home/alex/.local/lib/python3.5/site-packages/cffi/api.py", line 59, in __init__
      "version mismatch, %s != %s" % (backend.__version__, __version__)
  AssertionError: version mismatch, 1.5.2 != 1.8.3

       MY SYSTEM HAS 1.8.3 VERSION SEE BELOW
----------------------------------------------------------------------  
Collecting cffi - see http://cffi.readthedocs.io/en/latest/installation.html

  Using cached cffi-1.8.3-cp35-cp35m-manylinux1_x86_64.whl
Collecting pycparser (from cffi)
Installing collected packages: pycparser, cffi
Successfully installed cffi-1.8.3 pycparser-2.16
------------------------------------------------------
请记住,我不是操作系统专家 谢谢你的支持

pip3安装quandl的控制台命令历史记录

pip3 install quandl
Collecting quandl
  Using cached Quandl-3.0.1-py2.py3-none-any.whl
Collecting numpy>=1.8 (from quandl)
  Using cached numpy-1.11.2-cp35-cp35m-manylinux1_x86_64.whl
Collecting more-itertools (from quandl)
Collecting inflection>=0.3.1 (from quandl)
Collecting pyOpenSSL (from quandl)
  Using cached pyOpenSSL-16.2.0-py2.py3-none-any.whl
Collecting six (from quandl)
  Using cached six-1.10.0-py2.py3-none-any.whl
Collecting python-dateutil (from quandl)
  Using cached python_dateutil-2.5.3-py2.py3-none-any.whl
Collecting pyasn1 (from quandl)
  Using cached pyasn1-0.1.9-py2.py3-none-any.whl
Collecting pandas>=0.14 (from quandl)
  Using cached pandas-0.19.0-cp35-cp35m-manylinux1_x86_64.whl
Collecting requests>=2.7.0 (from quandl)
  Using cached requests-2.11.1-py2.py3-none-any.whl
Collecting ndg-httpsclient (from quandl)
Collecting cryptography>=1.3.4 (from pyOpenSSL->quandl)
  Using cached cryptography-1.5.2.tar.gz
Collecting pytz>=2011k (from pandas>=0.14->quandl)
  Using cached pytz-2016.7-py2.py3-none-any.whl
Collecting idna>=2.0 (from cryptography>=1.3.4->pyOpenSSL->quandl)
  Using cached idna-2.1-py2.py3-none-any.whl
Collecting setuptools>=11.3 (from cryptography>=1.3.4->pyOpenSSL->quandl)
  Using cached setuptools-28.6.1-py2.py3-none-any.whl
Collecting cffi>=1.4.1 (from cryptography>=1.3.4->pyOpenSSL->quandl)
  Using cached cffi-1.8.3-cp35-cp35m-manylinux1_x86_64.whl
Collecting pycparser (from cffi>=1.4.1->cryptography>=1.3.4->pyOpenSSL->quandl)
Building wheels for collected packages: cryptography
  Running setup.py bdist_wheel for cryptography ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-nrsep1ln/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp79dm6ulvpip-wheel- --python-tag cp35:
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-nrsep1ln/cryptography/setup.py", line 334, in <module>
      **keywords_with_side_effects(sys.argv)
    File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
      _setup_distribution = dist = klass(attrs)
    File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 272, in __init__
      _Distribution.__init__(self,attrs)
    File "/usr/lib/python3.5/distutils/dist.py", line 281, in __init__
      self.finalize_options()
    File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 327, in finalize_options
      ep.load()(self, ep.name, value)
    File "/home/alex/.local/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 181, in cffi_modules
      add_cffi_module(dist, cffi_module)
    File "/home/alex/.local/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 48, in add_cffi_module
      execfile(build_file_name, mod_vars)
    File "/home/alex/.local/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 24, in execfile
      exec(code, glob, glob)
    File "src/_cffi_src/build_openssl.py", line 81, in <module>
      extra_link_args=extra_link_args(compiler_type()),
    File "/tmp/pip-build-nrsep1ln/cryptography/src/_cffi_src/utils.py", line 61, in build_ffi_for_binding
      extra_link_args=extra_link_args,
    File "/tmp/pip-build-nrsep1ln/cryptography/src/_cffi_src/utils.py", line 69, in build_ffi
      ffi = FFI()
    File "/home/alex/.local/lib/python3.5/site-packages/cffi/api.py", line 59, in __init__
      "version mismatch, %s != %s" % (backend.__version__, __version__)
  AssertionError: version mismatch, 1.5.2 != 1.8.3

  ----------------------------------------
  Failed building wheel for cryptography
  Running setup.py clean for cryptography
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-nrsep1ln/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" clean --all:
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-nrsep1ln/cryptography/setup.py", line 334, in <module>
      **keywords_with_side_effects(sys.argv)
    File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
      _setup_distribution = dist = klass(attrs)
    File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 272, in __init__
      _Distribution.__init__(self,attrs)
    File "/usr/lib/python3.5/distutils/dist.py", line 281, in __init__
      self.finalize_options()
    File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 327, in finalize_options
      ep.load()(self, ep.name, value)
    File "/home/alex/.local/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 181, in cffi_modules
      add_cffi_module(dist, cffi_module)
    File "/home/alex/.local/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 48, in add_cffi_module
      execfile(build_file_name, mod_vars)
    File "/home/alex/.local/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 24, in execfile
      exec(code, glob, glob)
    File "src/_cffi_src/build_openssl.py", line 81, in <module>
      extra_link_args=extra_link_args(compiler_type()),
    File "/tmp/pip-build-nrsep1ln/cryptography/src/_cffi_src/utils.py", line 61, in build_ffi_for_binding
      extra_link_args=extra_link_args,
    File "/tmp/pip-build-nrsep1ln/cryptography/src/_cffi_src/utils.py", line 69, in build_ffi
      ffi = FFI()
    File "/home/alex/.local/lib/python3.5/site-packages/cffi/api.py", line 59, in __init__
      "version mismatch, %s != %s" % (backend.__version__, __version__)
  AssertionError: version mismatch, 1.5.2 != 1.8.3

  ----------------------------------------
  Failed cleaning build dir for cryptography
Failed to build cryptography
Installing collected packages: numpy, more-itertools, inflection, idna, pyasn1, six, setuptools, pycparser, cffi, cryptography, pyOpenSSL, python-dateutil, pytz, pandas, requests, ndg-httpsclient, quandl
  Running setup.py install for cryptography ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-nrsep1ln/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-qz2rogd_-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-nrsep1ln/cryptography/setup.py", line 334, in <module>
        **keywords_with_side_effects(sys.argv)
      File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 272, in __init__
        _Distribution.__init__(self,attrs)
      File "/usr/lib/python3.5/distutils/dist.py", line 281, in __init__
        self.finalize_options()
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 327, in finalize_options
        ep.load()(self, ep.name, value)
      File "/home/alex/.local/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 181, in cffi_modules
        add_cffi_module(dist, cffi_module)
      File "/home/alex/.local/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 48, in add_cffi_module
        execfile(build_file_name, mod_vars)
      File "/home/alex/.local/lib/python3.5/site-packages/cffi/setuptools_ext.py", line 24, in execfile
        exec(code, glob, glob)
      File "src/_cffi_src/build_openssl.py", line 81, in <module>
        extra_link_args=extra_link_args(compiler_type()),
      File "/tmp/pip-build-nrsep1ln/cryptography/src/_cffi_src/utils.py", line 61, in build_ffi_for_binding
        extra_link_args=extra_link_args,
      File "/tmp/pip-build-nrsep1ln/cryptography/src/_cffi_src/utils.py", line 69, in build_ffi
        ffi = FFI()
      File "/home/alex/.local/lib/python3.5/site-packages/cffi/api.py", line 59, in __init__
        "version mismatch, %s != %s" % (backend.__version__, __version__)
    AssertionError: version mismatch, 1.5.2 != 1.8.3

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-nrsep1ln/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-qz2rogd_-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-nrsep1ln/cryptography/
pip3安装quandl
收集量子
使用缓存的Quandl-3.0.1-py2.py3-none-any.whl
正在收集numpy>=1.8(来自quandl)
使用缓存的numpy-1.11.2-cp35-cp35m-manylinux1_x86_64.whl
收集更多itertools(来自quandl)
收集拐点>=0.3.1(来自quandl)
正在收集pyOpenSSL(来自quandl)
使用缓存的pyOpenSSL-16.2.0-py2.py3-none-any.whl
收集六个(来自quandl)
使用缓存的six-1.10.0-py2.py3-none-any.whl
正在收集python dateutil(来自quandl)
使用缓存的python_dateutil-2.5.3-py2.py3-none-any.whl
正在收集pyasn1(来自quandl)
使用缓存的pyasn1-0.1.9-py2.py3-none-any.whl
收集熊猫>=0.14(来自quandl)
使用缓存的pandas-0.19.0-cp35-cp35m-manylinux1_x86_64.whl
收集请求>=2.7.0(来自quandl)
使用缓存请求-2.11.1-py2.py3-none-any.whl
收集ndg HttpScClient(来自quandl)
收集加密>=1.3.4(来自pyOpenSSL->quandl)
使用缓存加密-1.5.2.tar.gz
收集pytz>=2011k(来自熊猫>=0.14->quandl)
使用缓存的pytz-2016.7-py2.py3-none-any.whl
收集idna>=2.0(来自加密>=1.3.4->pyOpenSSL->quandl)
使用缓存的idna-2.1-py2.py3-none-any.whl
收集setuptools>=11.3(来自加密>=1.3.4->pyOpenSSL->quandl)
使用缓存的setuptools-28.6.1-py2.py3-none-any.whl
收集cffi>=1.4.1(来自加密>=1.3.4->pyOpenSSL->quandl)
使用缓存的cffi-1.8.3-cp35-cp35m-manylinux1_x86_64.whl
正在收集pycparser(从cffi>=1.4.1->cryptography>=1.3.4->pyOpenSSL->quandl)
为收集的包构建轮子:加密
正在运行setup.py bdist\u加密控制盘。。。错误
从命令/usr/bin/python3-u-c“import setuptools,tokenize;uuu file_uuu=”/tmp/pip-build-nrsep1ln/cryptography/setup.py';exec(compile)(getattr(tokenize,'open',open)(uu file_uuu).read().replace('\r\n','\n'),uuuu file,'exec'))”bdist-wheel-d/tmp/tmp796dmulvpip-wheel----cp35标记完成输出:
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/tmp/pip-build-nrsep1ln/cryptography/setup.py”,第334行,在
**具有副作用的关键词(sys.argv)
文件“/usr/lib/python3.5/distutils/core.py”,第108行,在设置中
_设置\u分布=dist=klass(属性)
文件“/usr/lib/python3/dist-packages/setuptools/dist.py”,第272行,在__
_分布。初始化(自,属性)
文件“/usr/lib/python3.5/distutils/dist.py”,第281行,在__
self.finalize_选项()
文件“/usr/lib/python3/dist-packages/setuptools/dist.py”,第327行,在finalize\u选项中
ep.load()(self,ep.name,value)
cffi_模块中的文件“/home/alex/.local/lib/python3.5/site packages/cffi/setuptools_ext.py”,第181行
添加\u cffi\u模块(dist,cffi\u模块)
文件“/home/alex/.local/lib/python3.5/site packages/cffi/setuptools\u ext.py”,第48行,在add\u cffi\u模块中
execfile(生成文件名,mod\u vars)
文件“/home/alex/.local/lib/python3.5/site packages/cffi/setuptools_ext.py”,第24行,在execfile中
执行官(代码、全局、全局)
文件“src/\u cffi\u src/build\u openssl.py”,第81行,在
extra\u link\u args=extra\u link\u args(编译器类型()),
文件“/tmp/pip-build-nrsep1ln/cryptography/src/\u cffi\u src/utils.py”,第61行,用于绑定的内部ffi
额外链接参数=额外链接参数,
文件“/tmp/pip-build-nrsep1ln/cryptography/src/_cffi_src/utils.py”,第69行,内建ffi
ffi=ffi()
文件“/home/alex/.local/lib/python3.5/site packages/cffi/api.py”,第59行,在__
“版本不匹配,%s!=%s”%(后端。\uuuuu版本\uuuuu,\uuuuu版本\uuuuu)
AssertionError:版本不匹配,1.5.2!=1.8.3
----------------------------------------
无法构建加密控制盘
运行setup.py clean进行加密
从命令/usr/bin/python3-u-c“import setuptools,tokenize;uuu file_uuu=”/tmp/pip-build-nrsep1ln/cryptography/setup.py';exec(compile)(getattr(tokenize,'open',open)(uuu file_uuu).read().replace('\r\n','\n'),uu file,'exec'))”中完成输出清理--全部:
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/tmp/pip-build-nrsep1ln/cryptography/setup.py”,第334行,在
**具有副作用的关键词(sys.argv)
文件“/usr/lib/python3.5/distutils/core.py”,第108行,在设置中
_设置\u分布=dist=klass(属性)
文件“/usr/lib/python3/dist-packages/setuptools/dist.py”,第272行,在__
_分布。初始化(自,属性)
文件“/usr/lib/python3.5/distutils/dist.py”,第281行,在__
self.finalize_选项()
文件“/usr/lib/python3/dist-packages/setuptools/dist.py”,第327行,在finalize\u选项中
ep.load()(self,ep.name,value)
cffi_模块中的文件“/home/alex/.local/lib/python3.5/site packages/cffi/setuptools_ext.py”,第181行
添加\u cffi\u模块(dist,cffi\u模块)
文件“/home/alex/.local/lib/python3.5/site packages/cffi/setuptools\u ext.py”,第48行,在add\u cffi\u模块中
execfile(生成文件名,mod\u vars)
文件“/home/alex/.local/lib/python3.5/site packages/cffi/setuptools_ext.py”,第24行,在execfile中
执行官(代码、全局、全局)
文件“src/\u cffi\u src/build\u openssl.py”,第81行,在
extra\u link\u args=extra\u link\u args(编译器类型()),
文件“/tmp/pip-build-nrsep1ln/cryptography/src/\u cffi\u src/utils.py”,第61行,用于绑定的内部ffi
额外链接参数=额外链接参数,
sudo apt-get install libssl-dev

pip install pandas

pip install sklearn
sudo apt-get install libffi-dev