【问题标题】:Weird repeated sequence printed to console when installing packages through conda通过 conda 安装软件包时,奇怪的重复序列打印到控制台
【发布时间】:2017-06-13 10:15:41
【问题描述】:

我的系统规格:

C:\Users\Lenovo>conda info
Current conda install:

           platform : win-64
      conda version : 4.3.8
   conda is private : False
  conda-env version : 4.3.8
conda-build version : 1.21.3
     python version : 3.5.2.final.0
   requests version : 2.12.4
   root environment : C:\Anaconda3  (writable)
default environment : C:\Anaconda3
   envs directories : C:\Anaconda3\envs
      package cache : C:\Anaconda3\pkgs
       channel URLs : https://repo.continuum.io/pkgs/free/win-64
                      https://repo.continuum.io/pkgs/free/noarch
                      https://repo.continuum.io/pkgs/r/win-64
                      https://repo.continuum.io/pkgs/r/noarch
                      https://repo.continuum.io/pkgs/pro/win-64
                      https://repo.continuum.io/pkgs/pro/noarch
                      https://repo.continuum.io/pkgs/msys2/win-64
                      https://repo.continuum.io/pkgs/msys2/noarch
        config file : None
       offline mode : False
         user-agent : conda/4.3.8 requests/2.12.4 CPython/3.5.2 Windows/7 Windows/6.1.7601

最近在通过 conda 安装或更新包后,有时甚至 pip 时,以下序列被打印到控制台

extern "Python": function Cryptography_locking_cb() called, but @ffi.def_extern(
) was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_locking_cb() called, but @ffi.def_extern(
) was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_locking_cb() called, but @ffi.def_extern(
) was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_locking_cb() called, but @ffi.def_extern(
) was not called in the current subinterpreter.  Returning 0.
... # keeps repeating

我无法告诉你重复了多少次我正在运行控制台 2,并且命令历史记录在我的 300 行之后被切断。如果需要,我可以将整个内容打印到文本文件中,但我想我会先问。有谁知道这是什么或如何解决它?

【问题讨论】:

  • 谢谢@sundance。所以我想这是复杂的修复,答案是;人们正在努力。如果您想对问题进行简要总结,我会将其标记为正确答案。也许它会帮助人们在路上遇到同样的问题。
  • 我在家里也有同样的问题,但在工作中没有。

标签: python pip anaconda conda


【解决方案1】:

根据this post,您可以使用 pip 升级到 Cryptography 1.7:

pip install --upgrade pip
pip install cryptography>=1.7 --upgrade

【讨论】:

  • 考虑/首选conda install cryptography,以防您使用 anaconda 和密码学
  • @Raf 我尝试用 conda 更新它,但它仍然返回错误:/
猜你喜欢
  • 2018-03-14
  • 2019-12-24
  • 2018-10-03
  • 2017-11-22
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-01-25
相关资源
最近更新 更多