-
| I've installed, uninstalled, and reinstalled py-solc-x multiple times on Windows and cannot get the "Import "solcx" could not be resolved" error to go away. I know Windows sometimes needs extra care taken with paths, but I don't know what to do. Anything would be greatly appreciated! My code matches the course at 3:44:27 exactly. from solcx import compile_standard
with open("./SimpleStorage.sol", "r") as file:
    simple_storage_file = file.read()
compiled_sol = compile_standard(
    {
        "langauge": "Solidity",
        "sources": {"SimpleStorage/sol": {"content": simple_storage_file}},
        "settings": {
            "outputSelection": {
                "*": {"*": ["abi", "metadata", "evm.bytecode", "evm.sourceMap"]}
            }
        },
    },
    solc_version="0.6.0",
) | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
| It seems you code is pretty much ok, did you selected the correct python interpreter on vscode (the one you have solcx installed)? | 
Beta Was this translation helpful? Give feedback.
-
| I resolved this issue by using the command python3 deploy.py instead of python deploy.py . | 
Beta Was this translation helpful? Give feedback.
It seems you code is pretty much ok, did you selected the correct python interpreter on vscode (the one you have solcx installed)?