Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Weird repeated sequence printed to console when installing packages through conda

My system specs:

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

Recently when after installing or updating packages through conda and sometimes even pip the following sequence is printed to the console:

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

I couldn't tell you how many times this is repeated I'm running console2 and the the command history gets cut off after my 300 lines. I could print the whole thing to a text file if needed but I thought I'd ask first. Does anybody know what this is or how to fix it?

like image 368
James Draper Avatar asked Jan 27 '17 16:01

James Draper


People also ask

Does pip and conda conflict?

Conda analyzes each package for compatible dependencies, and how to install them without conflict. If there is a conflict, Conda will let you know that the installation cannot be completed. By comparison, Pip installs all package dependencies regardless of whether they conflict with other packages already installed.

What does C mean in conda install?

-c stands for --channel . It's used to specify a channel where to search for your package, the channel is often named owner. The generic command is: conda install -c CHANNEL_NAME PACKAGE_NAME.

Can I pip install in conda?

You can install pip in the current conda environment with the command conda install pip , as discussed in Using pip in an environment. If there are instances of pip installed both inside and outside the current conda environment, the instance of pip installed inside the current conda environment is used.

Is conda slower than pip?

So in real time, conda was about six times slower than pip . And this difference in speed is typical of my experience with these package managers.


1 Answers

According to this post, you may upgrade to Cryptography 1.7 with pip:

pip install --upgrade pip
pip install cryptography>=1.7 --upgrade
like image 138
Vamei Avatar answered Nov 10 '22 04:11

Vamei