Web3 Install is taking forever #165
-
Hi Guys, I'm having issues installing web3 with I'm not having much luck with this one, I've tried setting up a virtual environment, adding this to to system variables "C:\Users\user\AppData\Local\Programs\Python\Python310\Scripts". I've also tried different terminals such as git bash and powershell (I'm on windows 10). I'm not sure where to go from here. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 23 replies
-
Hi. I faced the same error. what you should do is this: 1-instead of python 3.10, you must install python 3.9 or maybe a lower version (3.9 worked for me) let me know if it fixed the problem, because it worked for me pretty good. |
Beta Was this translation helpful? Give feedback.
-
Hi guys, checking in, I've managed to get past this stage which I believe was a combination of a few errors in my environment. I still believe my environment isn't 100% right because I keep running into these weird package errors as I progress through the course (PIPX for example). Where it doesn't recognize the command even though it's been installed. Usually it's because it has installed itself somewhere weird and it's not on path (I installed like 4 different python versions trying to solve this and they're all in different places, so that will probably bite me in the ass down the track, but hey, it works!...for now). So I'll elaborate on what I did and hopefully this helps someone. I spent hours trying to figure this out...very frustrating indeed. Firstly, KAD105's steps are definitely things to try if you run into similar errors. Once that's downloaded, restart your PC before continuing! Now, From what I read Python 3.10 and Pip weren't working correctly so definitely try using Python 3.9 or something lower and don't forget to change your interpreter to whatever Python path your using!!! Now, I played around with different virtual environments, Anaconda and different shells. I used a combination of WSL, git bash and Powershell to get all the packages installed but I think if I were to do it again I would do the following. Install VS build tools. Install Python 3.9 or lower and ADD to PATH!! Run everything in Admin mode. You may have to play around with py, python or python3 syntax to get a certain packages to work. Or install it through npm or another method if pip/pipx isn't playing ball. From there, make sure said package is added to PATH using the method above. Anyway, hope that helps my fellow Windows users. Once I finish this course I will probably just make a dual boot system for Linux and just use that moving forward, does that seem like a good idea? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Hi. I faced the same error. what you should do is this:
1-instead of python 3.10, you must install python 3.9 or maybe a lower version (3.9 worked for me)
2-remember to add the python, npm, pip and web3 path to system variables if you encountered the not recognized error.
3-It is caused by the latest version of pip . A temporary fix is to downgrade your pip version to 20.2:
pip install --upgrade pip==20.2
let me know if it fixed the problem, because it worked for me pretty good.