Search code examples
pythonanacondacondaargparseconflicting-libraries

Conflict conda and argparse in Python 3.7


I am new to Python. I am trying to install a few packages and so far have only installed OpenCV and numpy for Python 3.7. When trying to install argparse, I encounter an issue:

>conda install argparse
Collecting package metadata: done
Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict:
  - argparse
  - conda[version='>=4.6.4']

I am surprised these two common packages are not compatible, have I done something wrong? I was able to install argparse in a specific environment but I would like to not install it only for a specific environment. Is there a way to do this?


Solution

  • Argparse should be native in python (i.e. you don't need to install it. It exists). Furthermore, if for whatever reason you still want to install argparse again, try adding anaconda channel like so:

    conda install -c anaconda argparse