BROWNIE - installation issue - installation

I am trying to install Brownie and get the following error
" PS C:\Python39> pip install eth-brownie
Collecting eth-brownie
Using cached eth_brownie-1.14.6-py3-none-any.whl (207 kB)
Collecting execnet==1.8.0
Using cached execnet-1.8.0-py2.py3-none-any.whl (39 kB)
Collecting prompt-toolkit==3.0.18
Using cached prompt_toolkit-3.0.18-py3-none-any.whl (367 kB)
Requirement already satisfied: eth-utils==1.10.0 in c:\python39\lib\site-packages (from eth-brownie) (1.10.0)
Collecting typing-extensions==3.7.4.3
Using cached typing_extensions-3.7.4.3-py3-none-any.whl (22 kB)
Requirement already satisfied: urllib3==1.26.4 in c:\python39\lib\site-packages (from eth-brownie) (1.26.4)
Collecting pythx==1.6.1
Using cached pythx-1.6.1-py2.py3-none-any.whl (39 kB)
Requirement already satisfied: pyparsing==2.4.7 in c:\users\jgc\appdata\roaming\python\python39\site-packages (from eth-brownie) (2.4.7)
Collecting pyyaml==5.4.1
Using cached PyYAML-5.4.1-cp39-cp39-win_amd64.whl (213 kB)
Collecting pytest-xdist==1.34.0
Using cached pytest_xdist-1.34.0-py2.py3-none-any.whl (36 kB)
Requirement already satisfied: toolz==0.11.1 in c:\python39\lib\site-packages (from eth-brownie) (0.11.1)
Collecting jsonschema==3.2.0
Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting attrs==20.3.0
Using cached attrs-20.3.0-py2.py3-none-any.whl (49 kB)
Collecting sortedcontainers==2.3.0
Using cached sortedcontainers-2.3.0-py2.py3-none-any.whl (29 kB)
Requirement already satisfied: iniconfig==1.1.1 in c:\python39\lib\site-packages (from eth-brownie) (1.1.1)
Collecting vyper==0.2.12
Using cached vyper-0.2.12-py3-none-any.whl (222 kB)
Collecting bitarray==1.2.2
Using cached bitarray-1.2.2.tar.gz (48 kB)
Requirement already satisfied: idna==2.10 in c:\python39\lib\site-packages (from eth-brownie) (2.10)
Collecting requests==2.25.1
Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Requirement already satisfied: netaddr==0.8.0 in c:\python39\lib\site-packages (from eth-brownie) (0.8.0)
Collecting asttokens==2.0.4
Using cached asttokens-2.0.4-py2.py3-none-any.whl (20 kB)
Requirement already satisfied: chardet==4.0.0 in c:\python39\lib\site-packages (from eth-brownie) (4.0.0)
Requirement already satisfied: eth-typing==2.2.2 in c:\python39\lib\site-packages (from eth-brownie) (2.2.2)
Collecting inflection==0.5.0
Using cached inflection-0.5.0-py2.py3-none-any.whl (5.8 kB)
Requirement already satisfied: pycryptodome==3.10.1 in c:\python39\lib\site-packages (from eth-brownie) (3.10.1)
Collecting eth-keyfile==0.5.1
Using cached eth_keyfile-0.5.1-py3-none-any.whl (8.3 kB)
Collecting websockets==8.1
Using cached websockets-8.1.tar.gz (58 kB)
Collecting pytest==6.2.3
Using cached pytest-6.2.3-py3-none-any.whl (280 kB)
Requirement already satisfied: rlp==1.2.0 in c:\python39\lib\site-packages (from eth-brownie) (1.2.0)
Collecting py-solc-ast==1.2.8
Using cached py_solc_ast-1.2.8-py3-none-any.whl (10.0 kB)
Requirement already satisfied: eth-keys==0.3.3 in c:\python39\lib\site-packages (from eth-brownie) (0.3.3)
Collecting tqdm==4.60.0
Using cached tqdm-4.60.0-py2.py3-none-any.whl (75 kB)
Collecting eth-rlp==0.2.1
Using cached eth_rlp-0.2.1-py3-none-any.whl (5.0 kB)
Collecting pathspec==0.8.1
Using cached pathspec-0.8.1-py2.py3-none-any.whl (28 kB)
Collecting pytest-forked==1.3.0
Using cached pytest_forked-1.3.0-py2.py3-none-any.whl (4.7 kB)
Collecting click==7.1.2
Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting py-solc-x==1.1.0
Using cached py_solc_x-1.1.0-py3-none-any.whl (15 kB)
Collecting eth-event==1.2.3
Using cached eth_event-1.2.3-py3-none-any.whl (7.3 kB)
Collecting multiaddr==0.0.9
Using cached multiaddr-0.0.9-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: packaging==20.9 in c:\python39\lib\site-packages (from eth-brownie) (20.9)
Collecting protobuf==3.15.8
Using cached protobuf-3.15.8-py2.py3-none-any.whl (173 kB)
Requirement already satisfied: six==1.15.0 in c:\python39\lib\site-packages (from eth-brownie) (1.15.0)
Requirement already satisfied: varint==1.0.2 in c:\python39\lib\site-packages (from eth-brownie) (1.0.2)
Collecting mypy-extensions==0.4.3
Using cached mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Requirement already satisfied: eth-hash[pycryptodome]==0.3.1 in c:\python39\lib\site-packages (from eth-brownie) (0.3.1)
Collecting semantic-version==2.8.5
Using cached semantic_version-2.8.5-py2.py3-none-any.whl (15 kB)
Collecting pygments-lexer-solidity==0.7.0
Using cached pygments-lexer-solidity-0.7.0.tar.gz (7.3 kB)
Requirement already satisfied: py==1.10.0 in c:\python39\lib\site-packages (from eth-brownie) (1.10.0)
Requirement already satisfied: cytoolz==0.11.0 in c:\python39\lib\site-packages (from eth-brownie) (0.11.0)
Requirement already satisfied: wcwidth==0.2.5 in c:\users\jgc\appdata\roaming\python\python39\site-packages (from eth-brownie) (0.2.5)
Collecting eth-account==0.5.4
Using cached eth_account-0.5.4-py3-none-any.whl (94 kB)
Collecting psutil==5.8.0
Using cached psutil-5.8.0-cp39-cp39-win_amd64.whl (246 kB)
Collecting pygments==2.8.1
Using cached Pygments-2.8.1-py3-none-any.whl (983 kB)
Collecting eth-abi==2.1.1
Using cached eth_abi-2.1.1-py3-none-any.whl (27 kB)
Requirement already satisfied: parsimonious==0.8.1 in c:\python39\lib\site-packages (from eth-brownie) (0.8.1)
Collecting apipkg==1.5
Using cached apipkg-1.5-py2.py3-none-any.whl (4.9 kB)
Collecting hypothesis==6.10.0
Using cached hypothesis-6.10.0-py3-none-any.whl (364 kB)
Collecting black==20.8b1
Using cached black-20.8b1-py3-none-any.whl
Requirement already satisfied: certifi==2020.12.5 in c:\python39\lib\site-packages (from eth-brownie) (2020.12.5)
Requirement already satisfied: pluggy==0.13.1 in c:\python39\lib\site-packages (from eth-brownie) (0.13.1)
Collecting pyjwt==1.7.1
Using cached PyJWT-1.7.1-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: pyrsistent==0.17.3 in c:\python39\lib\site-packages (from eth-brownie) (0.17.3)
Collecting regex==2021.4.4
Using cached regex-2021.4.4-cp39-cp39-win_amd64.whl (270 kB)
Collecting vvm==0.1.0
Using cached vvm-0.1.0-py3-none-any.whl (11 kB)
Requirement already satisfied: hexbytes==0.2.1 in c:\python39\lib\site-packages (from eth-brownie) (0.2.1)
Collecting ipfshttpclient==0.7.0a1
Using cached ipfshttpclient-0.7.0a1-py3-none-any.whl (231 kB)
Collecting lru-dict==1.1.7
Using cached lru-dict-1.1.7.tar.gz (10 kB)
Collecting mythx-models==1.9.1
Using cached mythx_models-1.9.1-py2.py3-none-any.whl (82 kB)
Collecting python-dotenv==0.16.0
Using cached python_dotenv-0.16.0-py2.py3-none-any.whl (18 kB)
Collecting typed-ast==1.4.3
Using cached typed_ast-1.4.3-cp39-cp39-win_amd64.whl (158 kB)
Requirement already satisfied: toml==0.10.2 in c:\python39\lib\site-packages (from eth-brownie)
(0.10.2)
Requirement already satisfied: base58==2.1.0 in c:\python39\lib\site-packages (from eth-brownie) (2.1.0)
Collecting web3==5.18.0
Using cached web3-5.18.0-py3-none-any.whl (469 kB)
Collecting python-dateutil==2.8.1
Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting appdirs==1.4.4
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Requirement already satisfied: setuptools in c:\python39\lib\site-packages (from jsonschema==3.2.0->eth-brownie) (56.0.0)
Collecting atomicwrites>=1.0
Using cached atomicwrites-1.4.0-py2.py3-none-any.whl (6.8 kB)
Requirement already satisfied: colorama in c:\users\jgc\appdata\roaming\python\python39\site-packages (from pytest==6.2.3->eth-brownie) (0.4.4)
Requirement already satisfied: pywin32>=223 in c:\users\jgc\appdata\roaming\python\python39\site-packages (from web3==5.18.0->eth-brownie) (301)
Using legacy 'setup.py install' for bitarray, since package 'wheel' is not installed.
Using legacy 'setup.py install' for lru-dict, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pygments-lexer-solidity, since package 'wheel' is not installed.
Using legacy 'setup.py install' for websockets, since package 'wheel' is not installed.
Installing collected packages: attrs, atomicwrites, requests, python-dateutil, pytest, multiaddr, jsonschema, inflection, eth-rlp, eth-keyfile, eth-abi, bitarray, apipkg, websockets, typing-extensions, typed-ast, sortedcontainers, semantic-version, regex, pytest-forked, pyjwt, pygments,
protobuf, pathspec, mythx-models, mypy-extensions, lru-dict, ipfshttpclient, execnet, eth-account, click, asttokens, appdirs, web3, vyper, vvm, tqdm, pyyaml, pythx, python-dotenv, pytest-xdist, pygments-lexer-solidity, py-solc-x, py-solc-ast, psutil, prompt-toolkit, hypothesis, eth-event, black, eth-brownie
Attempting uninstall: python-dateutil
Found existing installation: python-dateutil 2.8.2
Uninstalling python-dateutil-2.8.2:
Successfully uninstalled python-dateutil-2.8.2
WARNING: Failed to write executable - trying to use .deleteme logic
ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'c:\\python39\\Scripts\\py.test.exe' -> 'c:\\python39\\Scripts\\py.test.exe.deleteme'
PS C:\Python39>

Solution - Make sure that you are logged onto Visual Studio Code as administrator.
How to Run Visual Studio as an administrator
Open the Start menu, and scroll to Visual Studio.
From the right-click or context menu of Visual Studio, select More > Run as administrator. When Visual Studio starts, (Administrator) appears after the product name in the title bar.

Could you please format it more nicely (next time) so it's more readable? Thanks!
Either way, it looks like you aren't doing this/started the terminal/executing the command as an administrator as suggested by the warning WARNING: Failed to write executable - trying to use .deleteme logic. A similar issue posted on this GitHub seems to confirm that. So the fix would be to restart the terminal as an admin and try again, I think.

You have to manually remove libpng and re-install it with pip install dlib --no-cache
if you don't have libpng installed just pip install dlib --no-cache
Worked well for me. solution here https://github.com/davisking/dlib/issues/1694

Related

Installation of Pycairo for Manim on Mac OSX

I have installed all dependencies expect the final library, that is, manim. The only solutions offered so far are for linux and windows users, not sure for mac. When I try to install it I get this:
Haydens-Air:~ hmyers$ pip3 install manim
Collecting manim
Using cached manim-0.17.0-py3-none-any.whl (523 kB)
Collecting Pillow<10.0,>=9.1
Using cached Pillow-9.3.0-cp311-cp311-macosx_10_10_x86_64.whl (3.3 MB)
Collecting Pygments<3.0.0,>=2.10.0
Using cached Pygments-2.13.0-py3-none-any.whl (1.1 MB)
Collecting click<=9.0,>=7.2
Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting click-default-group<2.0.0,>=1.2.2
Using cached click-default-group-1.2.2.tar.gz (3.3 kB)
Preparing metadata (setup.py) ... done
Collecting cloup<0.14.0,>=0.13.0
Using cached cloup-0.13.1-py2.py3-none-any.whl (51 kB)
Collecting colour<0.2.0,>=0.1.5
Using cached colour-0.1.5-py2.py3-none-any.whl (23 kB)
Collecting decorator<6.0.0,>=5.0.7
Using cached decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting isosurfaces==0.1.0
Using cached isosurfaces-0.1.0-py3-none-any.whl (10 kB)
Collecting manimpango<0.5.0,>=0.4.0.post0
Using cached ManimPango-0.4.3-cp311-cp311-macosx_10_9_x86_64.whl (4.1 MB)
Collecting mapbox-earcut<2.0.0,>=1.0.0
Using cached mapbox_earcut-1.0.1-cp311-cp311-macosx_10_9_x86_64.whl (75 kB)
Collecting moderngl<6.0.0,>=5.6.3
Using cached moderngl-5.7.3-cp311-cp311-macosx_10_9_x86_64.whl (121 kB)
Collecting moderngl-window<3.0.0,>=2.3.0
Using cached moderngl_window-2.4.2-py3-none-any.whl (368 kB)
Collecting networkx<3.0,>=2.5
Using cached networkx-2.8.8-py3-none-any.whl (2.0 MB)
Collecting numpy<2.0,>=1.19
Using cached numpy-1.23.5-cp311-cp311-macosx_10_9_x86_64.whl (18.1 MB)
Collecting pycairo<2.0,>=1.21
Using cached pycairo-1.23.0.tar.gz (344 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting pydub<0.26.0,>=0.25.1
Using cached pydub-0.25.1-py2.py3-none-any.whl (32 kB)
Collecting requests<3.0.0,>=2.26.0
Using cached requests-2.28.1-py3-none-any.whl (62 kB)
Collecting rich!=12.0.0,>=6.0
Using cached rich-12.6.0-py3-none-any.whl (237 kB)
Collecting scipy<2.0.0,>=1.7.3
Using cached scipy-1.9.3-cp311-cp311-macosx_10_9_x86_64.whl (34.2 MB)
Collecting screeninfo<0.9,>=0.8
Using cached screeninfo-0.8.1-py3-none-any.whl (12 kB)
Collecting skia-pathops<0.8.0,>=0.7.0
Using cached skia_pathops-0.7.4-cp311-cp311-macosx_10_9_x86_64.whl (1.6 MB)
Collecting srt<4.0.0,>=3.5.0
Using cached srt-3.5.2.tar.gz (24 kB)
Preparing metadata (setup.py) ... done
Collecting svgelements<2.0.0,>=1.7.2
Using cached svgelements-1.8.4-py2.py3-none-any.whl (125 kB)
Collecting tqdm<5.0.0,>=4.62.3
Using cached tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
Collecting watchdog<3.0.0,>=2.1.6
Using cached watchdog-2.2.0-cp311-cp311-macosx_10_9_x86_64.whl (87 kB)
Collecting glcontext<3,>=2.3.6
Using cached glcontext-2.3.7-cp311-cp311-macosx_10_9_x86_64.whl (9.2 kB)
Collecting pyglet>=2.0dev23
Using cached pyglet-2.0.1-py3-none-any.whl (964 kB)
Collecting pyrr<1,>=0.10.3
Using cached pyrr-0.10.3-py3-none-any.whl (46 kB)
Collecting charset-normalizer<3,>=2
Using cached charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting idna<4,>=2.5
Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.13-py2.py3-none-any.whl (140 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
Collecting commonmark<0.10.0,>=0.9.0
Using cached commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
Collecting Cython
Using cached Cython-0.29.32-py2.py3-none-any.whl (986 kB)
Collecting pyobjc-framework-Cocoa
Using cached pyobjc_framework_Cocoa-9.0-cp311-cp311-macosx_10_9_universal2.whl (388 kB)
Collecting multipledispatch
Using cached multipledispatch-0.6.0-py3-none-any.whl (11 kB)
Collecting pyobjc-core>=9.0
Using cached pyobjc_core-9.0-cp311-cp311-macosx_10_9_universal2.whl (725 kB)
Collecting six
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: click-default-group, pycairo, srt
Building wheel for click-default-group (setup.py) ... done
Created wheel for click-default-group: filename=click_default_group-1.2.2-py3-none-any.whl size=3383 sha256=ca6f0efc6ff844f0b37b529152ef0236e37a61f384ef9f0c3e21ba12a8eb2ebb
Stored in directory: /Users/hmyers/Library/Caches/pip/wheels/25/86/2b/70a16a4dfc8c3ddfbee8b54dd199345d04f91a25eb95aa6a8e
Building wheel for pycairo (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pycairo (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-cpython-311
creating build/lib.macosx-10.9-universal2-cpython-311/cairo
copying cairo/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/cairo
copying cairo/__init__.pyi -> build/lib.macosx-10.9-universal2-cpython-311/cairo
copying cairo/py.typed -> build/lib.macosx-10.9-universal2-cpython-311/cairo
running build_ext
Package 'gobject-2.0' requires 'libffi >= 3.0.0' but version of libffi is 2.1
Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycairo
Building wheel for srt (setup.py) ... done
Created wheel for srt: filename=srt-3.5.2-py3-none-any.whl size=22467 sha256=a981a4c7f278c337814fb2c6bd04fc9a0f77d757969d1973932db664f21569f6
Stored in directory: /Users/hmyers/Library/Caches/pip/wheels/09/02/ac/16294d67d2b6ae081c2e0777a308baff081c59a8f35c34451c
Successfully built click-default-group srt
Failed to build pycairo
ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects
[notice] A new release of pip available: 22.3 -> 22.3.1
[notice] To update, run: pip3 install --upgrade pip
Any way to fix this and get pycairo to install? I'm not sure how to install pycairo on its own, and am wondering if there is a simpler solution to this.

pip install web3 giving error - The system cannot find the file specified

I have already tried a lot from last 3 days not not getting this solved.
pip install web3 was giving another error so for resolving that I have already installed Visual studio build tools.
I have installed C++ build tools and now another error is showing The system cannot find the file specified.
I have created virtual environment also.
I have even reinstalled VSCode.
PS D:\Blockchain\web3_py_simple_storage> pip install web3
Collecting web3
Using cached web3-5.29.1-py3-none-any.whl (500 kB)
Collecting aiohttp<4,>=3.7.4.post0
Using cached aiohttp-3.8.1-cp310-cp310-win_amd64.whl (555 kB)
Collecting hexbytes<1.0.0,>=0.1.0
Using cached hexbytes-0.2.2-py3-none-any.whl (6.1 kB)
Collecting eth-utils<2.0.0,>=1.9.5
Using cached eth_utils-1.10.0-py3-none-any.whl (24 kB)
Collecting jsonschema<5,>=3.2.0
Using cached jsonschema-4.5.1-py3-none-any.whl (72 kB)
Collecting eth-abi<3.0.0,>=2.0.0b6
Using cached eth_abi-2.1.1-py3-none-any.whl (27 kB)
Collecting websockets<10,>=9.1
Using cached websockets-9.1.tar.gz (76 kB)
Preparing metadata (setup.py) ... done
Collecting ipfshttpclient==0.8.0a2
Using cached ipfshttpclient-0.8.0a2-py3-none-any.whl (82 kB)
Collecting eth-typing<3.0.0,>=2.0.0
Using cached eth_typing-2.3.0-py3-none-any.whl (6.2 kB)
Collecting lru-dict<2.0.0,>=1.1.6
Using cached lru-dict-1.1.7.tar.gz (10 kB)
Preparing metadata (setup.py) ... done
Collecting protobuf<4,>=3.10.0
Using cached protobuf-3.20.1-cp310-cp310-win_amd64.whl (903 kB)
Requirement already satisfied: pywin32>=223 in c:\users\himanshu mishra\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from web3) (304)
Requirement already satisfied: requests<3.0.0,>=2.16.0 in c:\users\himanshu mishra\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from web3) (2.27.1)
Collecting eth-hash[pycryptodome]<1.0.0,>=0.2.0
Using cached eth_hash-0.3.2-py3-none-any.whl (8.8 kB)
Collecting eth-account<0.6.0,>=0.5.7
Using cached eth_account-0.5.7-py3-none-any.whl (101 kB)
Collecting multiaddr>=0.0.7
Using cached multiaddr-0.0.9-py2.py3-none-any.whl (16 kB)
Collecting async-timeout<5.0,>=4.0.0a3
Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting multidict<7.0,>=4.5
Using cached multidict-6.0.2-cp310-cp310-win_amd64.whl (27 kB)
Collecting frozenlist>=1.1.1
Using cached frozenlist-1.3.0-cp310-cp310-win_amd64.whl (33 kB)
Collecting aiosignal>=1.1.2
Using cached aiosignal-1.2.0-py3-none-any.whl (8.2 kB)
Collecting yarl<2.0,>=1.0
Using cached yarl-1.7.2-cp310-cp310-win_amd64.whl (122 kB)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in c:\users\himanshu mishra\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from aiohttp<4,>=3.7.4.post0->web3) (2.0.12)
Collecting attrs>=17.3.0
Using cached attrs-21.4.0-py2.py3-none-any.whl (60 kB)
Collecting parsimonious<0.9.0,>=0.8.0
Using cached parsimonious-0.8.1.tar.gz (45 kB)
Preparing metadata (setup.py) ... done
Collecting rlp<3,>=1.0.0
Using cached rlp-2.0.1-py2.py3-none-any.whl (20 kB)
Collecting eth-keys<0.4.0,>=0.3.4
Using cached eth_keys-0.3.4-py3-none-any.whl (21 kB)
Collecting bitarray<1.3.0,>=1.2.1
Using cached bitarray-1.2.2.tar.gz (48 kB)
Preparing metadata (setup.py) ... done
Collecting eth-keyfile<0.6.0,>=0.5.0
Using cached eth_keyfile-0.5.1-py3-none-any.whl (8.3 kB)
Collecting eth-rlp<2,>=0.1.2
Using cached eth_rlp-0.3.0-py3-none-any.whl (5.0 kB)
Collecting pycryptodome<4,>=3.6.6
Using cached pycryptodome-3.14.1-cp35-abi3-win_amd64.whl (1.8 MB)
Collecting cytoolz<1.0.0,>=0.10.1
Using cached cytoolz-0.11.2.tar.gz (481 kB)
Preparing metadata (setup.py) ... done
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
Using cached pyrsistent-0.18.1-cp310-cp310-win_amd64.whl (61 kB)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\himanshu mishra\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from requests<3.0.0,>=2.16.0->web3) (1.26.9)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\himanshu mishra\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from requests<3.0.0,>=2.16.0->web3) (2021.10.8)
Requirement already satisfied: idna<4,>=2.5 in c:\users\himanshu mishra\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from requests<3.0.0,>=2.16.0->web3) (3.3)
Collecting toolz>=0.8.0
Using cached toolz-0.11.2-py3-none-any.whl (55 kB)
Collecting eth-rlp<2,>=0.1.2
Using cached eth_rlp-0.2.1-py3-none-any.whl (5.0 kB)
Requirement already satisfied: netaddr in c:\users\himanshu mishra\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from multiaddr>=0.0.7->ipfshttpclient==0.8.0a2->web3) (0.8.0)
Requirement already satisfied: varint in c:\users\himanshu mishra\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from multiaddr>=0.0.7->ipfshttpclient==0.8.0a2->web3) (1.0.2)
Collecting base58
× Running setup.py install for lru-dict did not run successfully. │ exit code: 1
╰─> [5 lines of output]
running install
running build
running build_ext
building 'lru' extension
error: [WinError 2] The system cannot find the file specified [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> lru-dict
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Difficulty with installing detectron2

I am trying to create a project using python, detectron2, opencv and tkinter. I created a virtual environment with anaconda and created part of my code with opencv, tkinter and python successefully. But I am having trouble installing detectron2 on my windows. I followed the instructions on https://haroonshakeel.medium.com/detectron2-setup-on-windows-10-and-linux-407e5382df1, but I am having a trouble running this part "pip install -e ."
Obtaining file:///C:/Users/Lenovo/detectron2
Requirement already satisfied: Pillow>=7.1 in c:\users\lenovo\anaconda3\envs\detectron_env\lib\site-packages (from detectron2==0.6) (9.0.1)
Collecting matplotlib
Using cached matplotlib-3.5.1-cp38-cp38-win_amd64.whl (7.2 MB)
Collecting pycocotools>=2.0.2
Using cached pycocotools-2.0.4.tar.gz (106 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting termcolor>=1.1
Using cached termcolor-1.1.0-py3-none-any.whl
Collecting yacs>=0.1.8
Using cached yacs-0.1.8-py3-none-any.whl (14 kB)
Collecting tabulate
Using cached tabulate-0.8.9-py3-none-any.whl (25 kB)
Collecting cloudpickle
Using cached cloudpickle-2.0.0-py3-none-any.whl (25 kB)
Collecting tqdm>4.29.0
Using cached tqdm-4.63.1-py2.py3-none-any.whl (76 kB)
Collecting tensorboard
Using cached tensorboard-2.8.0-py3-none-any.whl (5.8 MB)
Collecting fvcore<0.1.6,>=0.1.5
Using cached fvcore-0.1.5.post20220305-py3-none-any.whl
Collecting iopath<0.1.10,>=0.1.7
Using cached iopath-0.1.9-py3-none-any.whl (27 kB)
Collecting future
Using cached future-0.18.2-py3-none-any.whl
Collecting pydot
Using cached pydot-1.4.2-py2.py3-none-any.whl (21 kB)
Collecting omegaconf>=2.1
Using cached omegaconf-2.1.1-py3-none-any.whl (74 kB)
Collecting hydra-core>=1.1
Using cached hydra_core-1.1.1-py3-none-any.whl (145 kB)
Collecting black==21.4b2
Using cached black-21.4b2-py3-none-any.whl (130 kB)
Collecting scipy>1.5.1
Using cached scipy-1.8.0-cp38-cp38-win_amd64.whl (36.9 MB)
Collecting pathspec<1,>=0.8.1
Using cached pathspec-0.9.0-py2.py3-none-any.whl (31 kB)
Collecting regex>=2020.1.8
Using cached regex-2022.3.15-cp38-cp38-win_amd64.whl (274 kB)
Collecting toml>=0.10.1
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting mypy-extensions>=0.4.3
Using cached mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Collecting click>=7.1.2
Using cached click-8.1.2-py3-none-any.whl (96 kB)
Collecting appdirs
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting colorama
Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting pyyaml>=5.1
Using cached PyYAML-6.0-cp38-cp38-win_amd64.whl (155 kB)
Requirement already satisfied: numpy in c:\users\lenovo\anaconda3\envs\detectron_env\lib\site-packages (from fvcore<0.1.6,>=0.1.5->detectron2==0.6) (1.21.5)
Collecting antlr4-python3-runtime==4.8
Using cached antlr4_python3_runtime-4.8-py3-none-any.whl
Collecting importlib-resources
Using cached importlib_resources-5.6.0-py3-none-any.whl (28 kB)
Collecting portalocker
Using cached portalocker-2.4.0-py2.py3-none-any.whl (16 kB)
Collecting packaging>=20.0
Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting pyparsing>=2.2.1
Using cached pyparsing-3.0.7-py3-none-any.whl (98 kB)
Collecting python-dateutil>=2.7
Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting fonttools>=4.22.0
Using cached fonttools-4.31.2-py3-none-any.whl (899 kB)
Collecting cycler>=0.10
Using cached cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting kiwisolver>=1.0.1
Using cached kiwisolver-1.4.2-cp38-cp38-win_amd64.whl (55 kB)
Requirement already satisfied: six>=1.5 in c:\users\lenovo\anaconda3\envs\detectron_env\lib\site-packages (from python-dateutil>=2.7->matplotlib->detectron2==0.6) (1.16.0)
Collecting zipp>=3.1.0
Using cached zipp-3.7.0-py3-none-any.whl (5.3 kB)
Collecting pywin32>=226
Using cached pywin32-303-cp38-cp38-win_amd64.whl (9.3 MB)
Requirement already satisfied: setuptools>=41.0.0 in c:\users\lenovo\anaconda3\envs\detectron_env\lib\site-packages (from tensorboard->detectron2==0.6) (58.0.4)
Collecting tensorboard-plugin-wit>=1.6.0
Using cached tensorboard_plugin_wit-1.8.1-py3-none-any.whl (781 kB)
Collecting markdown>=2.6.8
Using cached Markdown-3.3.6-py3-none-any.whl (97 kB)
Collecting absl-py>=0.4
Using cached absl_py-1.0.0-py3-none-any.whl (126 kB)
Collecting tensorboard-data-server<0.7.0,>=0.6.0
Using cached tensorboard_data_server-0.6.1-py3-none-any.whl (2.4 kB)
Collecting werkzeug>=0.11.15
Using cached Werkzeug-2.1.0-py3-none-any.whl (224 kB)
Collecting protobuf>=3.6.0
Using cached protobuf-3.19.4-cp38-cp38-win_amd64.whl (895 kB)
Collecting grpcio>=1.24.3
Using cached grpcio-1.44.0-cp38-cp38-win_amd64.whl (3.4 MB)
Collecting google-auth<3,>=1.6.3
Using cached google_auth-2.6.2-py2.py3-none-any.whl (156 kB)
Collecting google-auth-oauthlib<0.5,>=0.4.1
Using cached google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: wheel>=0.26 in c:\users\lenovo\anaconda3\envs\detectron_env\lib\site-packages (from tensorboard->detectron2==0.6) (0.37.1)
Requirement already satisfied: requests<3,>=2.21.0 in c:\users\lenovo\anaconda3\envs\detectron_env\lib\site-packages (from tensorboard->detectron2==0.6) (2.27.1)
Collecting pyasn1-modules>=0.2.1
Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting cachetools<6.0,>=2.0.0
Using cached cachetools-5.0.0-py3-none-any.whl (9.1 kB)
Collecting rsa<5,>=3.1.4
Using cached rsa-4.8-py3-none-any.whl (39 kB)
Collecting requests-oauthlib>=0.7.0
Using cached requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting importlib-metadata>=4.4
Using cached importlib_metadata-4.11.3-py3-none-any.whl (18 kB)
Collecting pyasn1<0.5.0,>=0.4.6
Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\lenovo\anaconda3\envs\detectron_env\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.6) (1.26.8)
Requirement already satisfied: idna<4,>=2.5 in c:\users\lenovo\anaconda3\envs\detectron_env\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.6) (3.3)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\lenovo\anaconda3\envs\detectron_env\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.6) (2021.10.8)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\users\lenovo\anaconda3\envs\detectron_env\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.6) (2.0.4)
Collecting oauthlib>=3.0.0
Using cached oauthlib-3.2.0-py3-none-any.whl (151 kB)
Building wheels for collected packages: pycocotools
Building wheel for pycocotools (PEP 517) ... error
**ERROR: Command errored out with exit status 1:
command: 'C:\Users\Lenovo\anaconda3\envs\detectron_env\python.exe' 'C:\Users\Lenovo\anaconda3\envs\detectron_env\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\Lenovo\AppData\Local\Temp\tmpm3cvme_m'
cwd: C:\Users\Lenovo\AppData\Local\Temp\pip-install-ikpywiuc\pycocotools_80bd6ca18d19476f9a573833cfa6d598
Complete output (14 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\pycocotools
copying pycocotools\coco.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\cocoeval.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\mask.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\__init__.py -> build\lib.win-amd64-3.8\pycocotools
running build_ext
skipping 'pycocotools\_mask.c' Cython extension (up-to-date)
building 'pycocotools._mask' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for pycocotools
Failed to build pycocotools
ERROR: Could not build wheels for pycocotools which use PEP 517 and cannot be installed directly**
This is how it looks like as an image.
Any help would be appreciated. I can do 1 on 1 sessions for to get help more accurately.
I found my solution. I had to install Microsoft Visual C++ 14.

Pip does ONLY install old and wrong version of my own package

I am working on a package https://pypi.org/project/sgraphic/ it is at version 0.1.1 but pip does not care. It only installs version 0.0.3
I've tried many solutions suggested here without luck. Ugprading pip, installing packages with no_cache but nothing works.
Any ideas what to try?
Here is a dump of me trying to upgrade
pip install sgraphic --upgrade
Requirement already satisfied: sgraphic in /home/user/anaconda3/lib/python3.7/site-packages (0.0.3)
Collecting sgraphic
Downloading sgraphic-0.1.1.tar.gz (4.4 kB)
Requirement already satisfied: skia-python in /home/user/anaconda3/lib/python3.7/site-packages (from sgraphic) (87.1)
Requirement already satisfied: IPython in /home/user/anaconda3/lib/python3.7/site-packages (from sgraphic) (7.22.0)
Using cached sgraphic-0.1.0.tar.gz (4.4 kB)
Using cached sgraphic-0.0.5-py3-none-any.whl (5.8 kB)
Requirement already satisfied: easing-functions in /home/user/anaconda3/lib/python3.7/site-packages (from sgraphic) (1.0.3)
Requirement already satisfied: numpy in /home/user/anaconda3/lib/python3.7/site-packages (from sgraphic) (1.20.3)
Using cached sgraphic-0.0.4-py3-none-any.whl (5.8 kB)
when running pip show sgraphic i get
Name: sgraphic
Version: 0.0.3
It seems to me that the current version (0.1.1) requires PIL, which cannot be installed using pip:
pip install sgraphic==0.1.1
Collecting sgraphic==0.1.1
Using cached sgraphic-0.1.1.tar.gz (4.4 kB)
Collecting skia-python
Using cached skia_python-87.2-cp39-cp39-win_amd64.whl (4.3 MB)
Collecting IPython
Using cached ipython-7.27.0-py3-none-any.whl (787 kB)
ERROR: Could not find a version that satisfies the requirement PIL (from sgraphic) (from versions: none)
ERROR: No matching distribution found for PIL
Because pip cannot install all dependencies, it fails to install sgraphic 0.1.1. However, if you do not explicitly request this version, pip will try to find an older version that it can install. Apparently, version 0.0.3 is the latest version it can install, so in your case it did that.
I think this is simply a bug in the latest versions of the sgraphic package. The code contains import PIL, but the package that contains PIL is actually called Pillow. It's also possible that (the original) PIL is supposed to be installed in another way, but I could not find any information about that.
NB: I created an issue on github to ask the author of the package. It was indeed a bug and is now fixed in version 0.1.2, which I could install successfully using pip.

installing ipython hash error

I am getting following error
THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE
while doing pip install ipython
Searching online, I found some users have success using --no-cache-dir but I had no luck.
Any suggestion on fixing this issue would be appreciated
Complete paste:
as-MacBook-Pro:~ a$ pip install ipython Collecting ipython Using
cached
https://files.pythonhosted.org/packages/52/19/aadde98d6bde1667d0bf431fb2d22451f880aaa373e0a241c7e7cb5815a0/ipython-5.7.0-py2-none-any.whl
Collecting traitlets>=4.2 (from ipython) Using cached
https://files.pythonhosted.org/packages/93/d6/abcb22de61d78e2fc3959c964628a5771e47e7cc60d53e9342e21ed6cc9a/traitlets-4.3.2-py2.py3-none-any.whl
Collecting decorator (from ipython) Using cached
https://files.pythonhosted.org/packages/bc/bb/a24838832ba35baf52f32ab1a49b906b5f82fb7c76b2f6a7e35e140bac30/decorator-4.3.0-py2.py3-none-any.whl
Collecting simplegeneric>0.8 (from ipython) Using cached
https://files.pythonhosted.org/packages/3d/57/4d9c9e3ae9a255cd4e1106bb57e24056d3d0709fc01b2e3e345898e49d5b/simplegeneric-0.8.1.zip
Collecting backports.shutil-get-terminal-size; python_version == "2.7"
(from ipython) Using cached
https://files.pythonhosted.org/packages/7d/cd/1750d6c35fe86d35f8562091737907f234b78fdffab42b29c72b1dd861f4/backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.whl
Collecting pygments (from ipython) Using cached
https://files.pythonhosted.org/packages/02/ee/b6e02dc6529e82b75bb06823ff7d005b141037cb1416b10c6f00fc419dca/Pygments-2.2.0-py2.py3-none-any.whl
Collecting appnope; sys_platform == "darwin" (from ipython) Using
cached
https://files.pythonhosted.org/packages/87/a9/7985e6a53402f294c8f0e8eff3151a83f1fb901fa92909bb3ff29b4d22af/appnope-0.1.0-py2.py3-none-any.whl
Collecting pexpect; sys_platform != "win32" (from ipython) Using
cached
https://files.pythonhosted.org/packages/89/e6/b5a1de8b0cc4e07ca1b305a4fcc3f9806025c1b651ea302646341222f88b/pexpect-4.6.0-py2.py3-none-any.whl
Collecting pickleshare (from ipython) Using cached
https://files.pythonhosted.org/packages/9f/17/daa142fc9be6b76f26f24eeeb9a138940671490b91cb5587393f297c8317/pickleshare-0.7.4-py2.py3-none-any.whl
Collecting prompt-toolkit<2.0.0,>=1.0.4 (from ipython) Using cached
https://files.pythonhosted.org/packages/d1/b0/1a6c262da35c779dd79550137aa7c298a424987240a28792ec5ccf48f848/prompt_toolkit-1.0.15-py2-none-any.whl
Requirement already satisfied: setuptools>=18.5 in
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
(from ipython) (18.5) Collecting pathlib2; python_version == "2.7" or
python_version == "3.3" (from ipython) Using cached
https://files.pythonhosted.org/packages/66/a7/9f8d84f31728d78beade9b1271ccbfb290c41c1e4dc13dbd4997ad594dcd/pathlib2-2.3.2-py2.py3-none-any.whl
Collecting ipython-genutils (from traitlets>=4.2->ipython) Using
cached
https://files.pythonhosted.org/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl
Requirement already satisfied: six in
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
(from traitlets>=4.2->ipython) (1.4.1) Collecting enum34;
python_version == "2.7" (from traitlets>=4.2->ipython) Using cached
https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
Collecting ptyprocess>=0.5 (from pexpect; sys_platform !=
"win32"->ipython) Using cached
https://files.pythonhosted.org/packages/d1/29/605c2cc68a9992d18dada28206eeada56ea4bd07a239669da41674648b6f/ptyprocess-0.6.0-py2.py3-none-any.whl
Collecting wcwidth (from prompt-toolkit<2.0.0,>=1.0.4->ipython)
Using cached
https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl
Collecting scandir; python_version < "3.5" (from pathlib2;
python_version == "2.7" or python_version == "3.3"->ipython) Using
cached
https://files.pythonhosted.org/packages/13/bb/e541b74230bbf7a20a3949a2ee6631be299378a784f5445aa5d0047c192b/scandir-1.7.tar.gz
THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If
you have updated the package versions, please update the hashes.
Otherwise, examine the package contents carefully; someone may have
tampered with them.
simplegeneric>0.8 from https://files.pythonhosted.org/packages/3d/57/4d9c9e3ae9a255cd4e1106bb57e24056d3d0709fc01b2e3e345898e49d5b/simplegeneric-0.8.1.zip#sha256=dc972e06094b9af5b855b3df4a646395e43d1c9d0d39ed345b7393560d0b9173
(from ipython):
Expected sha256 dc972e06094b9af5b855b3df4a646395e43d1c9d0d39ed345b7393560d0b9173
Got 01eda95e2448e83d00402a9c32bb4f72f6c26e6e7e051e1c98af79eab72b3b4d

Resources