-
I am using Python 3.9.6 on iOS. Whenever I try to run python deploy.py I get this error
if I directly run the deploy.py with VS Code, I get this:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @v1ka48
It seems that on your terminal you don't have installed web3 as its using the version 3.9 you talked about, and the vscode terminal interpreter is using 3.11 which has problems with web3 libraries. You can also try to install web3 first on the terminal (no vscode) and run the code. Finally, please check out your code an look if you have any extra unnecessary import. I hope this info might help. |
Beta Was this translation helpful? Give feedback.
Hello @v1ka48
I've made some research this and it seems to be a problem on the working directory you are using, you said you are using python v 3.9, but the output on your vscode is for Python 3.11.
It seems you are not using the correct interpreter to run the code, please try using a python virtualenv and install web3 on it.
Remember that when you create a
virtualenv
you should activate it with:source virtualenv/bin/activate
It seems that on your terminal you don't have installed web3 as its using the version 3.9 you talked about, and the vscode terminal interpreter is using 3.11 which has problems with web3 libraries. You can also try to install web3 first on the terminal (no vscode) a…