Skip to content

Import "solcx" could not be resolved, Import "web3" could not be resolved #1488

Answered by cromewar
praxis-dev asked this question in Q&A
Discussion options

You must be logged in to vote

The Tkinter is a library for user interfaces, so please be sure you didn't add that import accidentally.

First of all, please delete the build folder on your project and try again, if that does no work then:

As I mention on the guide, please is important for you to use a python virtualenv

  1. refer to the guide and install it
  2. create a new one with virtualenv nameOfTheEnv (the name can be anything you like).
  3. activate the env source nameOfTheEnv/bin/activate.
  4. install the dependencies there again -> Web3, solcx and that stuff.
  5. Try running your code using that env, remember that if you are going to use the visual studio terminal your should have opened vscode from the WSL terminal with code . an…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@praxis-dev
Comment options

Answer selected by praxis-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants