I am using Python 3.11.1., Mac OS 12.6.3. and VScode. I am trying to use a script that needs web3. I have tried to install it to my best ability and it seems to not be able to see the install.
After multiple tries the code still shows the squigly lines under the imports.
import os
import time
import csv
from import Web3
from web3.middleware import geth_poa_middleware
from keys import account, private_key, APIprovider, address, chainlink_address, abi, chainlink_abi
inside my code editor it show underlines for:
web3
web3.middleware
I have tried to install with a venv (virtual enviroment) and also without. the same result occurs.
I am expecting that pip will install web3 and the script will execute properly.
Here is the commands I have tried to install.
Create a virtual environment:
$ virtualenv -p python3 ~/.venv-py3
Activate your new virtual environment:
$ source ~/.venv-py3/bin/activate
With virtualenv active, make sure you have the latest packaging tools
$ pip install --upgrade pip setuptools
Now we can install web3.py...
$ pip install --upgrade web3
still not working and unline under web3.