Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 768
Nakx Avatar asked Dec 14 '25 04:12

Nakx


1 Answers

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 
like image 124
Mohammed Elmahgiubi Avatar answered Dec 15 '25 16:12

Mohammed Elmahgiubi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!