Why there are pip and conda packages after fresh installation?

Severin Pappadeux

All

Windows 10, 64bit, d/l Anaconda 2.5.0 with Python3, 64bit and installed it

After fresh installation i type conda list, and, among packages, I see duplicates like

jupyter                   1.0.0                    py35_1
jupyter-client            4.1.1                     <pip>
jupyter-console           4.1.0                     <pip>
jupyter-core              4.0.6                     <pip>
jupyter_client            4.1.1                    py35_0
jupyter_console           4.1.0                    py35_0
jupyter_core              4.0.6                    py35_0

Is it normal, and why some packages (not all of them, just a few) have duplicates (not quite, there is - vs _) both in conda and pip?

What will happen if I do pip uninstall jupyter-core?

What should be policy toward such packages?

Roland Weber

It's a known problem with the output of conda. The packages are installed only once, but due to differing naming conventions, they are listed twice. There is a (now closed) bug report about it: https://github.com/conda/conda/issues/1237

When you ask conda for a list of packages, this is what happens (or used to happen):

  • conda knows which packages were installed with conda.
  • conda calls pip under the covers to find packages that were installed outside of conda.
  • pip lists all packages, regardless of where they came from.
  • conda filters the output of pip by removing the packages installed with conda.

Afaict, the problem is with conda-installed packages that contain an underscore. pip replaces underscores with hyphens in its output. Therefore, conda fails to detect that it's a package installed by itself, and lists it as installed by pip. Of course, conda also lists the package with its original, underscored name as installed by conda. Hence the duplicates.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Partition not showing after fresh installation

From Dev

Ubuntu 16.04 broken packages after fresh install

From Dev

Why after fresh Ubuntu 12.04 installation update aren't being installed?

From Dev

Why after fresh Ubuntu 12.04 installation update aren't being installed?

From Dev

Can't login after fresh installation

From Dev

Disable `pip` retry installing packages - Speedup installation

From Dev

Issues with installation of python packages with Ansible pip module

From Dev

Issues with installation of python packages with Ansible pip module

From Dev

Why does conda not upgrade some packages on windows

From Dev

What to do if you need packages from both conda and pip?

From Dev

Cannot upgrade packages short after a fresh install of 16.04

From Dev

ImportError after successful pip installation

From Dev

cget not found after pip installation

From Dev

pip got corrupted after uninstalling python packages

From Dev

Laravel Spark registration view not loading after fresh installation

From Dev

I can't login to the graphical interface after a fresh installation of Debian?

From Dev

No sound after fresh installation of Xubuntu 16.04 (Dual Boot with Windows XP)

From Dev

torch.cuda.is_available() False after a fresh installation of drivers and cuda

From Dev

Ethernet Interface does not show after fresh installation of Ubuntu 20.04

From Dev

Getting Import error after installing packages through conda

From Dev

Get date and time of installation for packages installed via pip

From Dev

Python: pip cannot be called after installation

From Dev

Why does conda try to update packages with --no-update-dependencies?

From Dev

Why doesn't a new Conda environment come with packages like numpy?

From Dev

Why does conda create try to install weird packages?

From Dev

Why does conda install pip/setuptools etc...?

From Dev

Error in the fresh symfony installation

From Dev

Problem with fresh wubi installation

From Java

How do I keep track of pip-installed packages in an Anaconda (Conda) environment?

Related Related

  1. 1

    Partition not showing after fresh installation

  2. 2

    Ubuntu 16.04 broken packages after fresh install

  3. 3

    Why after fresh Ubuntu 12.04 installation update aren't being installed?

  4. 4

    Why after fresh Ubuntu 12.04 installation update aren't being installed?

  5. 5

    Can't login after fresh installation

  6. 6

    Disable `pip` retry installing packages - Speedup installation

  7. 7

    Issues with installation of python packages with Ansible pip module

  8. 8

    Issues with installation of python packages with Ansible pip module

  9. 9

    Why does conda not upgrade some packages on windows

  10. 10

    What to do if you need packages from both conda and pip?

  11. 11

    Cannot upgrade packages short after a fresh install of 16.04

  12. 12

    ImportError after successful pip installation

  13. 13

    cget not found after pip installation

  14. 14

    pip got corrupted after uninstalling python packages

  15. 15

    Laravel Spark registration view not loading after fresh installation

  16. 16

    I can't login to the graphical interface after a fresh installation of Debian?

  17. 17

    No sound after fresh installation of Xubuntu 16.04 (Dual Boot with Windows XP)

  18. 18

    torch.cuda.is_available() False after a fresh installation of drivers and cuda

  19. 19

    Ethernet Interface does not show after fresh installation of Ubuntu 20.04

  20. 20

    Getting Import error after installing packages through conda

  21. 21

    Get date and time of installation for packages installed via pip

  22. 22

    Python: pip cannot be called after installation

  23. 23

    Why does conda try to update packages with --no-update-dependencies?

  24. 24

    Why doesn't a new Conda environment come with packages like numpy?

  25. 25

    Why does conda create try to install weird packages?

  26. 26

    Why does conda install pip/setuptools etc...?

  27. 27

    Error in the fresh symfony installation

  28. 28

    Problem with fresh wubi installation

  29. 29

    How do I keep track of pip-installed packages in an Anaconda (Conda) environment?

HotTag

Archive