通过conda安装软件包时,控制台打印出奇怪的重复序列

14

我的系统配置:

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

我数不清重复了多少次,我正在运行console2,但命令历史记录在达到300行后就被截断了。如果需要,我可以将整个记录打印到文本文件中,但我想先问一下。有人知道这是什么问题或如何解决吗?


1
https://github.com/pyca/cryptography/issues/2913 - sundance
感谢@sundance。所以我猜这是一个复杂的修复过程,答案是:人们正在努力解决。如果你想简要总结一下问题,我会把它标记为正确答案。也许这会帮助未来遇到同样问题的人们。 - James Draper
1
我在家里也有同样的问题,但在工作中没有。 - Greg Graham
1个回答

16
根据这篇文章,你可以通过pip升级到Cryptography 1.7:
pip install --upgrade pip
pip install cryptography>=1.7 --upgrade

5
如果你在使用Anaconda且加密库版本低于1.7,请考虑/优先选择使用"conda install cryptography"。这个方法解决了我安装在Anaconda上的加密库的问题,该库最初版本为1.4,现已升级到2.1。 - Raf
3
我尝试使用conda更新它,但仍然返回错误:/ - Orhan Yazar

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接