Installation of Pycairo for Manim on Mac OSX - macos

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.

Related

Installing style50 on windows

I was trying to install style50 on windows (having MSYS2) using pip install style50 , the concluding message doesnt mention of anything failing. But thereafter when I run style50 --version for verifying, I get the following error(2):
$ pip install style50
Collecting style50
Using cached style50-2.7.5-py3-none-any.whl (24 kB)
Collecting icdiff
Downloading icdiff-2.0.5.tar.gz (15 kB)
Preparing metadata (setup.py) ... done
Collecting jsbeautifier
Downloading jsbeautifier-1.14.4.tar.gz (74 kB)
|████████████████████████████████| 74 kB 474 kB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting termcolor
Using cached termcolor-1.1.0.tar.gz (3.9 kB)
Preparing metadata (setup.py) ... done
Collecting python-magic
Downloading python_magic-0.4.27-py2.py3-none-any.whl (13 kB)
Collecting autopep8>=1.4.3
Using cached autopep8-1.6.0-py2.py3-none-any.whl (45 kB)
Collecting jinja2>=2.10
Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
|████████████████████████████████| 133 kB 1.1 MB/s
Collecting argparse
Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Collecting pycodestyle>=2.8.0
Using cached pycodestyle-2.8.0-py2.py3-none-any.whl (42 kB)
Collecting toml
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting MarkupSafe>=2.0
Downloading MarkupSafe-2.1.1-cp310-cp310-win_amd64.whl (17 kB)
Collecting six>=1.13.0
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting editorconfig>=0.12.2
Using cached EditorConfig-0.12.3-py3-none-any.whl (16 kB)
Using legacy 'setup.py install' for icdiff, since package 'wheel' is not installed.
Using legacy 'setup.py install' for termcolor, since package 'wheel' is not installed.
Building wheels for collected packages: jsbeautifier
Building wheel for jsbeautifier (pyproject.toml) ... done
Created wheel for jsbeautifier: filename=jsbeautifier-1.14.4-py3-none-any.whl size=93566 sha256=d10a21fd9f6ab76149c7440ac34f03eb81bcc7789a847f81704262d4d835ee65
Stored in directory: c:\users\<user>\appdata\local\pip\cache\wheels\80\98\1e\487c168894ca20596545a8bb7addfabc1465ea3a80ef8ba76d
Successfully built jsbeautifier
Installing collected packages: toml, six, pycodestyle, MarkupSafe, editorconfig, termcolor, python-magic, jsbeautifier, jinja2, icdiff, autopep8, argparse, style50
Running setup.py install for termcolor ... done
Running setup.py install for icdiff ... done
Successfully installed MarkupSafe-2.1.1 argparse-1.4.0 autopep8-1.6.0 editorconfig-0.12.3 icdiff-2.0.5 jinja2-3.1.2 jsbeautifier-1.14.4 pycodestyle-2.8.0 python-magic-0.4.27 six-1.16.0 style50-2.7.5 termcolor-1.1.0 toml-0.10.2
WARNING: You are using pip version 21.3.1; however, version 22.1.2 is available.
You should consider upgrading via the 'C:\Users\<user>\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command.
$ style50 --version
Traceback (most recent call last):
File "C:\Users\<user>\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\<user>\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\<user>\AppData\Local\Programs\Python\Python310\Scripts\style50.exe\__main__.py", line 4, in <module>
File "C:\Users\<user>\AppData\Local\Programs\Python\Python310\lib\site-packages\style50\__init__.py", line 20, in <module>
from ._api import Style50, StyleCheck, Error
File "C:\Users\<user>\AppData\Local\Programs\Python\Python310\lib\site-packages\style50\_api.py", line 4, in <module>
import fcntl
ModuleNotFoundError: No module named 'fcntl'
As per the documentation on Github (emphasis mine):
Along with most of CS50's command line tools, style50 supports being run on Windows but only via the Linux Subsystem in Windows 10. After launching it, style50 can be installed using the pip command above.

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.

BROWNIE - installation issue

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

Error installing Spacy ERROR: Command errored out with exit status 1:

I'm trying to install Spacy on a Windows machine of 32 bits. I have python 3.8.
I get this error when I try to install Spacy (output is too long, I'll insert a fragment)
(base) C:\Users\User>pip install spacy --no-cache-dir
Collecting spacy
Downloading spacy-2.3.2.tar.gz (5.9 MB)
|████████████████████████████████| 5.9 MB 3.3 MB/s
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\anaconda3\python.exe' 'c:\users\user\anaconda3\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\User\AppData\Local\Temp\pip-build-env-zhupmafd\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'cython>=0.25' 'cymem>=2.0.2,<2.1.0' 'preshed>=3.0.2,<3.1.0' 'murmurhash>=0.28.0,<1.1.0' thinc==7.4.1
cwd: None
Complete output (430 lines):
Collecting setuptools
Using cached setuptools-50.1.0-py3-none-any.whl (784 kB)
Collecting wheel
Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Collecting cython>=0.25
Using cached Cython-0.29.21-cp38-cp38-win32.whl (1.6 MB)
Collecting cymem<2.1.0,>=2.0.2
Using cached cymem-2.0.3.tar.gz (51 kB)
Collecting preshed<3.1.0,>=3.0.2
Using cached preshed-3.0.2.tar.gz (167 kB)
Collecting murmurhash<1.1.0,>=0.28.0
Using cached murmurhash-1.0.2.tar.gz (35 kB)
Collecting thinc==7.4.1
Using cached thinc-7.4.1.tar.gz (1.3 MB)
Collecting blis<0.5.0,>=0.4.0
Using cached blis-0.4.1.tar.gz (1.8 MB)
Collecting wasabi<1.1.0,>=0.0.9
Using cached wasabi-0.8.0-py3-none-any.whl (23 kB)
Collecting srsly<1.1.0,>=0.0.6
Using cached srsly-1.0.2.tar.gz (192 kB)
Collecting catalogue<1.1.0,>=0.0.7
Using cached catalogue-1.0.0-py2.py3-none-any.whl (7.7 kB)
Collecting numpy>=1.7.0
Using cached numpy-1.19.1-cp38-cp38-win32.whl (10.9 MB)
Collecting plac<1.2.0,>=0.9.6
Using cached plac-1.1.3-py2.py3-none-any.whl (20 kB)
Collecting tqdm<5.0.0,>=4.10.0
Using cached tqdm-4.48.2-py2.py3-none-any.whl (68 kB)
Building wheels for collected packages: cymem, preshed, murmurhash, thinc, blis, srsly
Building wheel for cymem (setup.py): started
Building wheel for cymem (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-4jggcsja\\cymem\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-4jggcsja\\cymem\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\User\AppData\Local\Temp\pip-wheel-chusorxt'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-4jggcsja\cymem\
I have tried:
pip install spacy
conda install -c conda-forge spacy
pip install spacy --no-cache-dir
Nothing works! What do I need to do?
Spacy has dropped support for 32 bit and so you'll need to use 64 bit Python.

Resources