Skip to content

ImportError: cannot import name 'echo' from 'click' (unknown location) #2634

@salmanhiro

Description

@salmanhiro

I'm using Python 3.8.9 with conda environment and resulted in this problem

Traceback (most recent call last):
  File "/Users/mac/opt/anaconda3/bin/black", line 5, in <module>
    from black import patched_main
  File "/Users/mac/opt/anaconda3/lib/python3.8/site-packages/black/__init__.py", line 46, in <module>
    from black.concurrency import cancel, shutdown, maybe_install_uvloop
  File "/Users/mac/opt/anaconda3/lib/python3.8/site-packages/black/concurrency.py", line 6, in <module>
    from black.output import err
  File "/Users/mac/opt/anaconda3/lib/python3.8/site-packages/black/output.py", line 11, in <module>
    from click import echo, style
ImportError: cannot import name 'echo' from 'click' (unknown location)

I tried to installing click by pip install click but the problem still persists

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions