0

I'm trying to install de messagebird dependency into my python project.

I write into requirements.txt and after I run pip install -r requirements.txt as you can see below: enter image description here

But the pylance was still showing me the error: enter image description here

Then I try to install using pip install messagebird but still with no success.

I also try to reopen the window but no success too.

I'm using pyenv, and using the right env on the vscode and terminal as you can see on the next images:

enter image description here

And in the terminal: enter image description here

1 Answers1

0

You may be installing to the wrong Python distro? (could be installing to Python 2.7)

To target python3 you can use the following commands

python3 -m pip install -r requirements.txt

Or

pip3 install -r requirements.txt

To check that you've installed messagebird correctly you could also use the following command:

pip3 freeze | grep 'messagebird'
ScottMcC
  • 4,094
  • 1
  • 27
  • 35