smartcontractkit / full-blockchain-solidity-course-py

Ultimate Solidity, Blockchain, and Smart Contract - Beginner to Expert Full Course | Python Edition
MIT License
10.81k stars 2.91k forks source link

Lesson 5 - Error while installing Brownie #1598

Closed SaboohTaha closed 2 years ago

SaboohTaha commented 2 years ago

I'm trying to install Brownie but it gives me this error after I run this command pipx install eth-brownie:

Error: Command '['C:\Users\Sabooh Taha\.local\pipx\shared\Scripts\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 101.

'C:\Users\Sabooh Taha\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe -m venv --clear C:\Users\Sabooh Taha\.local\pipx\shared' failed

I've pipx version 1.1.0 already installed using this command python -m pip install --user pipx and its Path is also in environmental variables (also run this command python -m pipx ensurepath and manually added its path). I did restart VS code after adding it to Path. Any Idea how to fix this issue? Btw, My python version is 3.10.5 on Windows 10.

Edit: I fixed this issue by reinstalling python and in advanced setting, selecting to install for all users.