It’s very simple. First check the python path you are currently executing, whether it is /usr/bin/python or something else. Then there will be a pip under the same path, such as /usr/bin/pip, and then execute /usr/bin/pip install click, this will be fine
First of all, you mentioned that you installed virtualenv, then you need to determine one thing, whether you installed click in the system environment or virtualenv environment. Is the python running in the system environment or virtualenv environment?
If it is correct, then you need to determine the package version issue. Hope it helps.
First enter the virtual environment of virtualenv, and then execute your script, it will usually be there. Also, you can use sys to insert the directory of your virtual environment into it
It’s very simple. First check the python path you are currently executing, whether it is /usr/bin/python or something else. Then there will be a pip under the same path, such as /usr/bin/pip, and then execute /usr/bin/pip install click, this will be fine
First of all, you mentioned that you installed virtualenv, then you need to determine one thing, whether you installed click in the system environment or virtualenv environment.
Is the python running in the system environment or virtualenv environment?
If it is correct, then you need to determine the package version issue.
Hope it helps.
The python interpreter you imported is not the same as the one you installed click
First enter the virtual environment of virtualenv, and then execute your script, it will usually be there. Also, you can use sys to insert the directory of your virtual environment into it