"ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects" during install Odoo15 [closed] - odoo

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 days ago.
Improve this question
I try to install Odoo15 follow instruction from youtube https://www.youtube.com/watch?v=eD12tbz6BC4&t=18s but i got error during install Odoo dependencies are listed in the requirements.txt file. Error is "ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects". How i fix this problem? Thank you.
C:\odoo\odoo>pip install -r requirements.txt
Ignoring freezegun: markers 'python_version < "3.8"' don't match your environment
Ignoring gevent: markers 'python_version == "3.7"' don't match your environment
Ignoring gevent: markers 'python_version > "3.9"' don't match your environment
Ignoring greenlet: markers 'python_version == "3.7"' don't match your environment
Ignoring greenlet: markers 'python_version > "3.9"' don't match your environment
Ignoring ofxparse: markers 'python_version > "3.9"' don't match your environment
Ignoring psycopg2: markers 'sys_platform != "win32" and python_version < "3.8"' don't match your environment
Ignoring python-ldap: markers 'sys_platform != "win32"' don't match your environment
Ignoring Werkzeug: markers 'python_version > "3.9"' don't match your environment
Ignoring xlrd: markers 'python_version < "3.8"' don't match your environment
Collecting Babel==2.9.1
Using cached Babel-2.9.1-py2.py3-none-any.whl (8.8 MB)
Collecting chardet==3.0.4
Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting cryptography==2.6.1
Using cached cryptography-2.6.1.tar.gz (491 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting decorator==4.4.2
Using cached decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting docutils==0.16
Using cached docutils-0.16-py2.py3-none-any.whl (548 kB)
Collecting ebaysdk==2.1.5
Using cached ebaysdk-2.1.5.tar.gz (42 kB)
Preparing metadata (setup.py) ... done
Collecting freezegun==0.3.15
Using cached freezegun-0.3.15-py2.py3-none-any.whl (14 kB)
Collecting gevent==20.9.0
Downloading gevent-20.9.0-cp38-cp38-win_amd64.whl (1.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 2.6 MB/s eta 0:00:00
Collecting greenlet==0.4.17
Downloading greenlet-0.4.17-cp38-cp38-win_amd64.whl (19 kB)
Collecting idna==2.8
Using cached idna-2.8-py2.py3-none-any.whl (58 kB)
Collecting Jinja2==2.11.3
Using cached Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
Collecting libsass==0.21.0
Downloading libsass-0.21.0-cp36-abi3-win_amd64.whl (868 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 868.2/868.2 kB 4.2 MB/s eta 0:00:00
Collecting lxml==4.6.5
Using cached lxml-4.6.5-cp38-cp38-win_amd64.whl (3.6 MB)
Collecting MarkupSafe==1.1.0
Using cached MarkupSafe-1.1.0.tar.gz (18 kB)
Preparing metadata (setup.py) ... done
Collecting num2words==0.5.6
Using cached num2words-0.5.6-py2.py3-none-any.whl (64 kB)
Collecting ofxparse==0.19
Downloading ofxparse-0.19.tar.gz (54 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.1/54.1 kB 2.7 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting passlib==1.7.2
Downloading passlib-1.7.2-py2.py3-none-any.whl (507 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 507.8/507.8 kB 4.0 MB/s eta 0:00:00
Collecting Pillow==9.0.1
Using cached Pillow-9.0.1-cp38-cp38-win_amd64.whl (3.2 MB)
Collecting polib==1.1.0
Using cached polib-1.1.0-py2.py3-none-any.whl (25 kB)
Collecting psutil==5.6.7
Using cached psutil-5.6.7-cp38-cp38-win_amd64.whl (236 kB)
Collecting psycopg2==2.8.6
Downloading psycopg2-2.8.6-cp38-cp38-win_amd64.whl (1.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 4.2 MB/s eta 0:00:00
Collecting pydot==1.4.1
Using cached pydot-1.4.1-py2.py3-none-any.whl (19 kB)
Collecting pyopenssl==19.0.0
Using cached pyOpenSSL-19.0.0-py2.py3-none-any.whl (53 kB)
Collecting PyPDF2==1.26.0
Using cached PyPDF2-1.26.0.tar.gz (77 kB)
Preparing metadata (setup.py) ... done
Collecting pypiwin32
Using cached pypiwin32-223-py3-none-any.whl (1.7 kB)
Collecting pyserial==3.4
Using cached pyserial-3.4-py2.py3-none-any.whl (193 kB)
Collecting python-dateutil==2.7.3
Using cached python_dateutil-2.7.3-py2.py3-none-any.whl (211 kB)
Collecting python-stdnum==1.16
Downloading python_stdnum-1.16-py2.py3-none-any.whl (910 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 910.7/910.7 kB 3.2 MB/s eta 0:00:00
Collecting pytz==2019.3
Using cached pytz-2019.3-py2.py3-none-any.whl (509 kB)
Collecting pyusb==1.0.2
Using cached pyusb-1.0.2.tar.gz (54 kB)
Preparing metadata (setup.py) ... done
Collecting qrcode==6.1
Using cached qrcode-6.1-py2.py3-none-any.whl (31 kB)
Collecting reportlab==3.5.59
Using cached reportlab-3.5.59-cp38-cp38-win_amd64.whl (2.3 MB)
Collecting requests==2.25.1
Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting urllib3==1.26.5
Using cached urllib3-1.26.5-py2.py3-none-any.whl (138 kB)
Collecting vobject==0.9.6.1
Using cached vobject-0.9.6.1.tar.gz (58 kB)
Preparing metadata (setup.py) ... done
Collecting Werkzeug==0.16.1
Downloading Werkzeug-0.16.1-py2.py3-none-any.whl (327 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 327.4/327.4 kB 4.1 MB/s eta 0:00:00
Collecting xlrd==1.2.0
Using cached xlrd-1.2.0-py2.py3-none-any.whl (103 kB)
Collecting XlsxWriter==1.1.2
Using cached XlsxWriter-1.1.2-py2.py3-none-any.whl (142 kB)
Collecting xlwt==1.3.*
Using cached xlwt-1.3.0-py2.py3-none-any.whl (99 kB)
Collecting zeep==3.4.0
Using cached zeep-3.4.0-py2.py3-none-any.whl (99 kB)
Collecting asn1crypto>=0.21.0
Using cached asn1crypto-1.5.1-py2.py3-none-any.whl (105 kB)
Collecting six>=1.4.1
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting cffi!=1.11.3,>=1.8
Using cached cffi-1.15.1-cp38-cp38-win_amd64.whl (178 kB)
Requirement already satisfied: setuptools in c:\users\yun\appdata\local\programs\python\python38\lib\site-packages (from gevent==20.9.0->-r requirements.txt (line 10)) (56.0.0)
Collecting zope.event
Using cached zope.event-4.6-py2.py3-none-any.whl (6.8 kB)
Collecting zope.interface
Downloading zope.interface-5.5.2-cp38-cp38-win_amd64.whl (211 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 211.8/211.8 kB 6.3 MB/s eta 0:00:00
Collecting beautifulsoup4
Using cached beautifulsoup4-4.11.2-py3-none-any.whl (129 kB)
Collecting pyparsing>=2.1.4
Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Collecting colorama
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
Collecting requests-toolbelt>=0.7.1
Using cached requests_toolbelt-0.10.1-py2.py3-none-any.whl (54 kB)
Collecting defusedxml>=0.4.1
Using cached defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting attrs>=17.2.0
Using cached attrs-22.2.0-py3-none-any.whl (60 kB)
Collecting isodate>=0.5.4
Using cached isodate-0.6.1-py2.py3-none-any.whl (41 kB)
Collecting appdirs>=1.4.0
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting cached-property>=1.3.0
Using cached cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)
Collecting pywin32>=223
Using cached pywin32-305-cp38-cp38-win_amd64.whl (12.3 MB)
Collecting pycparser
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting soupsieve>1.2
Downloading soupsieve-2.4-py3-none-any.whl (37 kB)
Building wheels for collected packages: cryptography, ebaysdk, MarkupSafe, ofxparse, PyPDF2, pyusb, vobject
Building wheel for cryptography (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cryptography (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [126 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-38
creating build\lib.win-amd64-cpython-38\cryptography
copying src\cryptography\exceptions.py -> build\lib.win-amd64-cpython-38\cryptography
copying src\cryptography\fernet.py -> build\lib.win-amd64-cpython-38\cryptography
copying src\cryptography\utils.py -> build\lib.win-amd64-cpython-38\cryptography
copying src\cryptography\__about__.py -> build\lib.win-amd64-cpython-38\cryptography
copying src\cryptography\__init__.py -> build\lib.win-amd64-cpython-38\cryptography
creating build\lib.win-amd64-cpython-38\cryptography\hazmat
copying src\cryptography\hazmat\_oid.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat
copying src\cryptography\hazmat\__init__.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat
creating build\lib.win-amd64-cpython-38\cryptography\x509
copying src\cryptography\x509\base.py -> build\lib.win-amd64-cpython-38\cryptography\x509
copying src\cryptography\x509\certificate_transparency.py -> build\lib.win-amd64-cpython-38\cryptography\x509
copying src\cryptography\x509\extensions.py -> build\lib.win-amd64-cpython-38\cryptography\x509
copying src\cryptography\x509\general_name.py -> build\lib.win-amd64-cpython-38\cryptography\x509
copying src\cryptography\x509\name.py -> build\lib.win-amd64-cpython-38\cryptography\x509
copying src\cryptography\x509\ocsp.py -> build\lib.win-amd64-cpython-38\cryptography\x509
copying src\cryptography\x509\oid.py -> build\lib.win-amd64-cpython-38\cryptography\x509
copying src\cryptography\x509\__init__.py -> build\lib.win-amd64-cpython-38\cryptography\x509
creating build\lib.win-amd64-cpython-38\cryptography\hazmat\backends
copying src\cryptography\hazmat\backends\interfaces.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends
copying src\cryptography\hazmat\backends\__init__.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends
creating build\lib.win-amd64-cpython-38\cryptography\hazmat\bindings
copying src\cryptography\hazmat\bindings\__init__.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\bindings
creating build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives
copying src\cryptography\hazmat\primitives\cmac.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives
copying src\cryptography\hazmat\primitives\constant_time.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives
copying src\cryptography\hazmat\primitives\hashes.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives
copying src\cryptography\hazmat\primitives\hmac.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives
copying src\cryptography\hazmat\primitives\keywrap.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives
copying src\cryptography\hazmat\primitives\mac.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives
copying src\cryptography\hazmat\primitives\padding.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives
copying src\cryptography\hazmat\primitives\__init__.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives
creating build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\aead.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\backend.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\ciphers.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\cmac.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\decode_asn1.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\dh.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\dsa.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\ec.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\ed25519.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\ed448.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\encode_asn1.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\hashes.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\hmac.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\ocsp.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\rsa.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\utils.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\x25519.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\x448.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\x509.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
copying src\cryptography\hazmat\backends\openssl\__init__.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\backends\openssl
creating build\lib.win-amd64-cpython-38\cryptography\hazmat\bindings\openssl
copying src\cryptography\hazmat\bindings\openssl\binding.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\bindings\openssl
copying src\cryptography\hazmat\bindings\openssl\_conditional.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\bindings\openssl
copying src\cryptography\hazmat\bindings\openssl\__init__.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\bindings\openssl
creating build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\asymmetric
copying src\cryptography\hazmat\primitives\asymmetric\dh.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\asymmetric
copying src\cryptography\hazmat\primitives\asymmetric\dsa.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\asymmetric
copying src\cryptography\hazmat\primitives\asymmetric\ec.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\asymmetric
copying src\cryptography\hazmat\primitives\asymmetric\ed25519.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\asymmetric
copying src\cryptography\hazmat\primitives\asymmetric\ed448.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\asymmetric
copying src\cryptography\hazmat\primitives\asymmetric\padding.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\asymmetric
copying src\cryptography\hazmat\primitives\asymmetric\rsa.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\asymmetric
copying src\cryptography\hazmat\primitives\asymmetric\utils.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\asymmetric
copying src\cryptography\hazmat\primitives\asymmetric\x25519.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\asymmetric
copying src\cryptography\hazmat\primitives\asymmetric\x448.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\asymmetric
copying src\cryptography\hazmat\primitives\asymmetric\__init__.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\asymmetric
creating build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\ciphers
copying src\cryptography\hazmat\primitives\ciphers\aead.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\ciphers
copying src\cryptography\hazmat\primitives\ciphers\algorithms.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\ciphers
copying src\cryptography\hazmat\primitives\ciphers\base.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\ciphers
copying src\cryptography\hazmat\primitives\ciphers\modes.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\ciphers
copying src\cryptography\hazmat\primitives\ciphers\__init__.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\ciphers
creating build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\kdf
copying src\cryptography\hazmat\primitives\kdf\concatkdf.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\kdf
copying src\cryptography\hazmat\primitives\kdf\hkdf.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\kdf
copying src\cryptography\hazmat\primitives\kdf\kbkdf.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\kdf
copying src\cryptography\hazmat\primitives\kdf\pbkdf2.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\kdf
copying src\cryptography\hazmat\primitives\kdf\scrypt.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\kdf
copying src\cryptography\hazmat\primitives\kdf\x963kdf.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\kdf
copying src\cryptography\hazmat\primitives\kdf\__init__.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\kdf
creating build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\serialization
copying src\cryptography\hazmat\primitives\serialization\base.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\serialization
copying src\cryptography\hazmat\primitives\serialization\pkcs12.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\serialization
copying src\cryptography\hazmat\primitives\serialization\ssh.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\serialization
copying src\cryptography\hazmat\primitives\serialization\__init__.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\serialization
creating build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\twofactor
copying src\cryptography\hazmat\primitives\twofactor\hotp.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\twofactor
copying src\cryptography\hazmat\primitives\twofactor\totp.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\twofactor
copying src\cryptography\hazmat\primitives\twofactor\utils.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\twofactor
copying src\cryptography\hazmat\primitives\twofactor\__init__.py -> build\lib.win-amd64-cpython-38\cryptography\hazmat\primitives\twofactor
running egg_info
writing src\cryptography.egg-info\PKG-INFO
writing dependency_links to src\cryptography.egg-info\dependency_links.txt
writing requirements to src\cryptography.egg-info\requires.txt
writing top-level names to src\cryptography.egg-info\top_level.txt
reading manifest file 'src\cryptography.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs\_build'
warning: no previously-included files matching '*' found under directory 'vectors'
adding license file 'LICENSE'
adding license file 'LICENSE.APACHE'
adding license file 'LICENSE.BSD'
adding license file 'AUTHORS.rst'
writing manifest file 'src\cryptography.egg-info\SOURCES.txt'
running build_ext
generating cffi module 'build\\temp.win-amd64-cpython-38\\Release\\_padding.c'
creating build\temp.win-amd64-cpython-38
creating build\temp.win-amd64-cpython-38\Release
generating cffi module 'build\\temp.win-amd64-cpython-38\\Release\\_constant_time.c'
generating cffi module 'build\\temp.win-amd64-cpython-38\\Release\\_openssl.c'
building '_openssl' extension
creating build\temp.win-amd64-cpython-38\Release\build
creating build\temp.win-amd64-cpython-38\Release\build\temp.win-amd64-cpython-38
creating build\temp.win-amd64-cpython-38\Release\build\temp.win-amd64-cpython-38\Release
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ic:\users\yun\appdata\local\programs\python\python38\include -Ic:\users\yun\appdata\local\programs\python\python38\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" /Tcbuild\temp.win-amd64-cpython-38\Release\_openssl.c /Fobuild\temp.win-amd64-cpython-38\Release\build\temp.win-amd64-cpython-38\Release\_openssl.obj
_openssl.c
c:\users\yun\appdata\local\programs\python\python38\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cryptography
Building wheel for ebaysdk (setup.py) ... done
Created wheel for ebaysdk: filename=ebaysdk-2.1.5-py3-none-any.whl size=62720 sha256=a0fdc4957649d3beff36e8665cafbb3994bb93fa73efe259947615dc53abd298
Stored in directory: c:\users\yun\appdata\local\pip\cache\wheels\1a\77\81\e8be55a2437aaf71d7b757645f396ac0cc956299b77b267f29
Building wheel for MarkupSafe (setup.py) ... done
Created wheel for MarkupSafe: filename=MarkupSafe-1.1.0-py3-none-any.whl size=12921 sha256=1bb3830a6effc050b110eefb05cb8ebf451043099aa96622ab49bbb763467fe8
Stored in directory: c:\users\yun\appdata\local\pip\cache\wheels\3a\bc\6f\c7c1715c62131d7028d6172ba160ce6be1c23145b16a1fe551
Building wheel for ofxparse (setup.py) ... done
Created wheel for ofxparse: filename=ofxparse-0.19-py3-none-any.whl size=35383 sha256=cabea5ce7df1794db111cb19fd10b5b7508de2fbbdc08d60a5a1e0ce721012af
Stored in directory: c:\users\yun\appdata\local\pip\cache\wheels\14\6d\47\c10b1c8fe71849e06233a6b99932c3e289d5d90f9bdf017732
Building wheel for PyPDF2 (setup.py) ... done
Created wheel for PyPDF2: filename=PyPDF2-1.26.0-py3-none-any.whl size=61097 sha256=e90f5c6a8112d9a4dd77bfcbd3e93baac8ed2ce1ba2d7df75d63d061763724b1
Stored in directory: c:\users\yun\appdata\local\pip\cache\wheels\b1\1a\8f\a4c34be976825a2f7948d0fa40907598d69834f8ab5889de11
Building wheel for pyusb (setup.py) ... done
Created wheel for pyusb: filename=pyusb-1.0.2-py3-none-any.whl size=57036 sha256=a4f448dc3cde5c9841a57872fe04d2e072708b1a8d019037d63ce866737865ed
Stored in directory: c:\users\yun\appdata\local\pip\cache\wheels\3c\73\eb\ffd9a3e54c3f21980d5debae6b4aa9699111004ea119640c0b
Building wheel for vobject (setup.py) ... done
Created wheel for vobject: filename=vobject-0.9.6.1-py3-none-any.whl size=47678 sha256=4cdf76e977674b987eef40ff2a539b82fb6049af1b90d8d90726b2801c55fe9f
Stored in directory: c:\users\yun\appdata\local\pip\cache\wheels\c6\6c\b8\c62a4806af8cc300d2da9ac4024a85931b9e24489648217aba
Successfully built ebaysdk MarkupSafe ofxparse PyPDF2 pyusb vobject
Failed to build cryptography
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects
I tried to find the way how to install pyproject.toml-based projects but i can't.

Related

Tensornets ERROR instalation ubuntu anaconda environment

I tried to install tensornets in my ubuntu anaconda environment but the message bellow appears.
I installed:
numpy 1.17.0,
tensoflow 1.14.0,
pandas 1.1.5,
opencv,
keras,
cmake,
dlib
$ pip install tensornets
collecting tensornets
Using cached tensornets-0.4.6.tar.gz (651 kB)
Installing build dependencies ... done
WARNING: Missing build requirements in pyproject.toml for tensornets from https://files.pythonhosted.org/packages/71/22/2c9402bbf142b94dc39d8a3c9884690ae87706a8bc1453d6cf0630525173/tensornets-0.4.6.tar.gz#sha256=e1095082b45a06168d56450d8c8fa49780d8aef8d4d1fcc64efceadb743f9ceb.
WARNING: The project does not specify a build backend, and pip cannot fall back to setuptools without 'wheel'.
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... done
Building wheels for collected packages: tensornets
Building wheel for tensornets (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /home/mario/miniconda3/envs/VARVO_LINUX/bin/python /home/mario/miniconda3/envs/VARVO_LINUX/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp2bm7gwnh
cwd: /tmp/pip-install-vupow4g5/tensornets_24fc2060cce2460b9b6417949ee1e6b6
Complete output (86 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/tensornets
copying tensornets/utils.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/unet.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/inceptions.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/densenets.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/preprocess.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/capsulenets.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/tnets.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/resnets.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/nasnets.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/init.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/middles.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/version_utils.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/squeezenets.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/vggs.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/darknets.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/zf.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/layers.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/pretrained.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/mobilenets.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/ops.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/detections.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/efficientnets.py -> build/lib.linux-x86_64-3.6/tensornets
copying tensornets/wavenets.py -> build/lib.linux-x86_64-3.6/tensornets
creating build/lib.linux-x86_64-3.6/tensornets/datasets
copying tensornets/datasets/init.py -> build/lib.linux-x86_64-3.6/tensornets/datasets
copying tensornets/datasets/imagenet.py -> build/lib.linux-x86_64-3.6/tensornets/datasets
copying tensornets/datasets/voc.py -> build/lib.linux-x86_64-3.6/tensornets/datasets
copying tensornets/datasets/coco.py -> build/lib.linux-x86_64-3.6/tensornets/datasets
creating build/lib.linux-x86_64-3.6/tensornets/contrib_framework
copying tensornets/contrib_framework/init.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_framework
copying tensornets/contrib_framework/arg_scope.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_framework
copying tensornets/contrib_framework/variables.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_framework
creating build/lib.linux-x86_64-3.6/tensornets/contrib_layers
copying tensornets/contrib_layers/utils.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers
copying tensornets/contrib_layers/init.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers
copying tensornets/contrib_layers/initializers.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers
copying tensornets/contrib_layers/normalization.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers
copying tensornets/contrib_layers/optimizers.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers
copying tensornets/contrib_layers/layers.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers
copying tensornets/contrib_layers/regularizers.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers
copying tensornets/contrib_layers/summaries.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers
copying tensornets/contrib_layers/rev_block_lib.py -> build/lib.linux-x86_64-3.6/tensornets/contrib_layers
creating build/lib.linux-x86_64-3.6/tensornets/references
copying tensornets/references/init.py -> build/lib.linux-x86_64-3.6/tensornets/references
copying tensornets/references/rcnns.py -> build/lib.linux-x86_64-3.6/tensornets/references
copying tensornets/references/yolo_utils.py -> build/lib.linux-x86_64-3.6/tensornets/references
copying tensornets/references/rpn_utils.py -> build/lib.linux-x86_64-3.6/tensornets/references
copying tensornets/references/yolos.py -> build/lib.linux-x86_64-3.6/tensornets/references
creating build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils
copying tensornets/references/darkflow_utils/init.py -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils
copying tensornets/references/darkflow_utils/box.py -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils
running egg_info
writing tensornets.egg-info/PKG-INFO
writing dependency_links to tensornets.egg-info/dependency_links.txt
writing top-level names to tensornets.egg-info/top_level.txt
reading manifest file 'tensornets.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'tensornets.egg-info/SOURCES.txt'
copying tensornets/datasets/coco.names -> build/lib.linux-x86_64-3.6/tensornets/datasets
copying tensornets/datasets/voc.names -> build/lib.linux-x86_64-3.6/tensornets/datasets
copying tensornets/references/coco.names -> build/lib.linux-x86_64-3.6/tensornets/references
copying tensornets/references/voc.names -> build/lib.linux-x86_64-3.6/tensornets/references
copying tensornets/references/darkflow_utils/init.pyc -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils
copying tensornets/references/darkflow_utils/box.pyc -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils
copying tensornets/references/darkflow_utils/get_boxes.c -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils
copying tensornets/references/darkflow_utils/get_boxes.pyx -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils
copying tensornets/references/darkflow_utils/get_boxes.so -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils
copying tensornets/references/darkflow_utils/nms.c -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils
copying tensornets/references/darkflow_utils/nms.pxd -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils
copying tensornets/references/darkflow_utils/nms.pyx -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils
copying tensornets/references/darkflow_utils/nms.so -> build/lib.linux-x86_64-3.6/tensornets/references/darkflow_utils
running build_ext
building 'tensornets.references.darkflow_utils.nms' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/tensornets
creating build/temp.linux-x86_64-3.6/tensornets/references
creating build/temp.linux-x86_64-3.6/tensornets/references/darkflow_utils
gcc -pthread -B /home/mario/miniconda3/envs/VARVO_LINUX/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-build-env-5o3ttz/overlay/lib/python3.6/site-packages/numpy/core/include -I/home/mario/miniconda3/envs/VARVO_LINUX/include/python3.6m -c tensornets/references/darkflow_utils/nms.c -o build/temp.linux-x86_64-3.6/tensornets/references/darkflow_utils/nms.o
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for tensornets
Failed to build tensornets
ERROR: Could not build wheels for tensornets which use PEP 517 and cannot be installed directly
The problem was in the gcc compiler
I followed this tutorial: https://linuxize.com/post/how-to-install-gcc-compiler-on-ubuntu-18-04/
In summary:
1.- Update
$sudo apt update
2.- Install build-essential
$sudo apt install build-essential
2.1.- Optional (documentation)
$sudo apt-get install manpages-dev
3.- Verify GCC compiler installation
$gcc --version

cannot install web3 in python virtual_enviroment

I am using $pip install web3 inside a python_virtual_env, but I get the error below.
Defaulting to user installation because normal site-packages is not writeable
Collecting web3
Using cached web3-5.7.0-py3-none-any.whl (460 kB)
Collecting hexbytes<1.0.0,>=0.1.0
Using cached hexbytes-0.2.0-py3-none-any.whl (5.3 kB)
Collecting jsonschema<4.0.0,>=3.0.0
Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting typing-extensions<4,>=3.7.4.1; python_version < "3.8"
Using cached typing_extensions-3.7.4.2-py3-none-any.whl (22 kB)
Collecting protobuf<4,>=3.10.0
Using cached protobuf-3.11.3-cp36-cp36m-manylinux1_x86_64.whl (1.3 MB)
Requirement already satisfied: websockets<9.0.0,>=8.1.0 in /home/ajay/.local/lib/python3.6/site-packages (from web3) (8.1)
Collecting ipfshttpclient<1,>=0.4.12
Using cached ipfshttpclient-0.4.12-py2.py3-none-any.whl (157 kB)
Requirement already satisfied: requests<3.0.0,>=2.16.0 in /usr/lib/python3/dist-packages (from web3) (2.18.4)
Collecting eth-abi<3.0.0,>=2.0.0b6
Using cached eth_abi-2.1.1-py3-none-any.whl (27 kB)
Requirement already satisfied: eth-hash[pycryptodome]<1.0.0,>=0.2.0 in /home/ajay/.local/lib/python3.6/site-packages (from web3) (0.2.0)
Collecting lru-dict<2.0.0,>=1.1.6
Using cached lru-dict-1.1.6.tar.gz (9.4 kB)
Collecting eth-account<0.5.0,>=0.4.0
Using cached eth_account-0.4.0-py3-none-any.whl (26 kB)
Requirement already satisfied: eth-typing<3.0.0,>=2.0.0 in /home/ajay/.local/lib/python3.6/site-packages (from web3) (2.2.1)
Collecting eth-utils<2.0.0,>=1.8.4
Using cached eth_utils-1.8.4-py3-none-any.whl (23 kB)
Collecting attrs>=17.4.0
Using cached attrs-19.3.0-py2.py3-none-any.whl (39 kB)
Collecting importlib-metadata; python_version < "3.8"
Using cached importlib_metadata-1.6.0-py2.py3-none-any.whl (30 kB)
Requirement already satisfied: setuptools in /home/ajay/.local/lib/python3.6/site-packages (from jsonschema<4.0.0,>=3.0.0->web3) (46.1.3)
Requirement already satisfied: six>=1.11.0 in /usr/lib/python3/dist-packages (from jsonschema<4.0.0,>=3.0.0->web3) (1.11.0)
Processing /home/ajay/.cache/pip/wheels/d1/8a/1c/32ab9017418a2c64e4fbaf503c08648bed2f8eb311b869a464/pyrsistent-0.16.0-cp36-cp36m-linux_x86_64.whl
Collecting multiaddr>=0.0.7
Using cached multiaddr-0.0.9-py2.py3-none-any.whl (16 kB)
Processing /home/ajay/.cache/pip/wheels/43/95/c9/c9f7a3f9dc34ebd851739148bd5b42ab35618ea0808388647c/parsimonious-0.8.1-py3-none-any.whl
Requirement already satisfied: pycryptodome<4,>=3.6.6; extra == "pycryptodome" in /home/ajay/.local/lib/python3.6/site-packages (from eth-hash[pycryptodome]<1.0.0,>=0.2.0->web3) (3.9.7)
Collecting eth-rlp<1,>=0.1.2
Using cached eth_rlp-0.1.2-py3-none-any.whl (6.5 kB)
Collecting rlp<2,>=1.0.0
Using cached rlp-1.2.0-py2.py3-none-any.whl (19 kB)
Collecting attrdict<3,>=2.0.0
Using cached attrdict-2.0.1-py2.py3-none-any.whl (9.9 kB)
Collecting eth-keys<0.3.0,>=0.2.1
Using cached eth_keys-0.2.4-py3-none-any.whl (24 kB)
Collecting eth-keyfile<0.6.0,>=0.5.0
Using cached eth_keyfile-0.5.1-py3-none-any.whl (8.3 kB)
Collecting cytoolz<1.0.0,>=0.10.1; implementation_name == "cpython"
Using cached cytoolz-0.10.1.tar.gz (475 kB)
Collecting zipp>=0.5
Using cached zipp-3.1.0-py3-none-any.whl (4.9 kB)
Processing /home/ajay/.cache/pip/wheels/35/f3/7e/e67e5ecf7e79b875e840bee3258c29ade8bffd56542d9c9c39/varint-1.0.2-py3-none-any.whl
Collecting base58
Using cached base58-2.0.0-py3-none-any.whl (6.0 kB)
Collecting netaddr
Using cached netaddr-0.7.19-py2.py3-none-any.whl (1.6 MB)
Requirement already satisfied: toolz>=0.8.0 in /home/ajay/.local/lib/python3.6/site-packages (from cytoolz<1.0.0,>=0.10.1; implementation_name == "cpython"->eth-utils<2.0.0,>=1.8.4->web3) (0.10.0)
Building wheels for collected packages: lru-dict, cytoolz
Building wheel for lru-dict (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j__tim18/lru-dict/setup.py'"'"'; __file__='"'"'/tmp/pip-install-j__tim18/lru-dict/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 /tmp/pip-wheel-023_93_d
cwd: /tmp/pip-install-j__tim18/lru-dict/
Complete output (12 lines):
running bdist_wheel
running build
running build_ext
building 'lru' extension
creating build
creating build/temp.linux-x86_64-3.6
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c lru.c -o build/temp.linux-x86_64-3.6/lru.o
lru.c:1:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for lru-dict
Running setup.py clean for lru-dict
Building wheel for cytoolz (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j__tim18/cytoolz/setup.py'"'"'; __file__='"'"'/tmp/pip-install-j__tim18/cytoolz/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 /tmp/pip-wheel-o4caiffl
cwd: /tmp/pip-install-j__tim18/cytoolz/
Complete output (57 lines):
ALERT: Cython not installed. Building without Cython.
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/compatibility.py -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/_signatures.py -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/_version.py -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/__init__.py -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/utils_test.py -> build/lib.linux-x86_64-3.6/cytoolz
creating build/lib.linux-x86_64-3.6/cytoolz/curried
copying cytoolz/curried/operator.py -> build/lib.linux-x86_64-3.6/cytoolz/curried
copying cytoolz/curried/exceptions.py -> build/lib.linux-x86_64-3.6/cytoolz/curried
copying cytoolz/curried/__init__.py -> build/lib.linux-x86_64-3.6/cytoolz/curried
copying cytoolz/recipes.pyx -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/utils.pyx -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/itertoolz.pyx -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/dicttoolz.pyx -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/functoolz.pyx -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/__init__.pxd -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/dicttoolz.pxd -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/itertoolz.pxd -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/recipes.pxd -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/utils.pxd -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/cpython.pxd -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/functoolz.pxd -> build/lib.linux-x86_64-3.6/cytoolz
creating build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_tlz.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_doctests.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_curried.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_signatures.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/dev_skip_test.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_curried_toolzlike.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_functoolz.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_recipes.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_inspect_args.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_dicttoolz.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_dev_skip_test.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_embedded_sigs.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_compatibility.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_utils.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_none_safe.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_serialization.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_itertoolz.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_docstrings.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
running build_ext
building 'cytoolz.dicttoolz' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/cytoolz
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c cytoolz/dicttoolz.c -o build/temp.linux-x86_64-3.6/cytoolz/dicttoolz.o
cytoolz/dicttoolz.c:17:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for cytoolz
Running setup.py clean for cytoolz
Failed to build lru-dict cytoolz
Installing collected packages: cytoolz, eth-utils, hexbytes, attrs, zipp, importlib-metadata, pyrsistent, jsonschema, typing-extensions, protobuf, varint, base58, netaddr, multiaddr, ipfshttpclient, parsimonious, eth-abi, lru-dict, rlp, eth-rlp, attrdict, eth-keys, eth-keyfile, eth-account, web3
Running setup.py install for cytoolz ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j__tim18/cytoolz/setup.py'"'"'; __file__='"'"'/tmp/pip-install-j__tim18/cytoolz/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-1xzorhvi/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/ajay/.local/include/python3.6m/cytoolz
cwd: /tmp/pip-install-j__tim18/cytoolz/
Complete output (57 lines):
ALERT: Cython not installed. Building without Cython.
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/compatibility.py -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/_signatures.py -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/_version.py -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/__init__.py -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/utils_test.py -> build/lib.linux-x86_64-3.6/cytoolz
creating build/lib.linux-x86_64-3.6/cytoolz/curried
copying cytoolz/curried/operator.py -> build/lib.linux-x86_64-3.6/cytoolz/curried
copying cytoolz/curried/exceptions.py -> build/lib.linux-x86_64-3.6/cytoolz/curried
copying cytoolz/curried/__init__.py -> build/lib.linux-x86_64-3.6/cytoolz/curried
copying cytoolz/recipes.pyx -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/utils.pyx -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/itertoolz.pyx -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/dicttoolz.pyx -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/functoolz.pyx -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/__init__.pxd -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/dicttoolz.pxd -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/itertoolz.pxd -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/recipes.pxd -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/utils.pxd -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/cpython.pxd -> build/lib.linux-x86_64-3.6/cytoolz
copying cytoolz/functoolz.pxd -> build/lib.linux-x86_64-3.6/cytoolz
creating build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_tlz.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_doctests.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_curried.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_signatures.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/dev_skip_test.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_curried_toolzlike.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_functoolz.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_recipes.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_inspect_args.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_dicttoolz.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_dev_skip_test.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_embedded_sigs.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_compatibility.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_utils.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_none_safe.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_serialization.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_itertoolz.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
copying cytoolz/tests/test_docstrings.py -> build/lib.linux-x86_64-3.6/cytoolz/tests
running build_ext
building 'cytoolz.dicttoolz' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/cytoolz
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c cytoolz/dicttoolz.c -o build/temp.linux-x86_64-3.6/cytoolz/dicttoolz.o
cytoolz/dicttoolz.c:17:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j__tim18/cytoolz/setup.py'"'"'; __file__='"'"'/tmp/pip-install-j__tim18/cytoolz/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-1xzorhvi/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/ajay/.local/include/python3.6m/cytoolz Check the logs for full command output.
Why is that and how can I fix it?
Just rerun after:
sudo apt-get install python3-dev
fatal error: Python.h: No such file or directory

Errors during the installation of tensorflow

I am not able update(upgrade) my tensorflow-gpu and am being shown various error. Even after trying to google every single error of them, one or the other conflicted to result in throwing errors in red fonts.
Can you please help me installing (upgrading) tensorflow-gpu error free by having this thread replied with the commands I'm supposed to be passing.
Here's the list of errors I see
Collecting tensorflow-gpu
Using cached tensorflow_gpu-2.1.0-cp37-cp37m-win_amd64.whl (356.5 MB)
Collecting scipy==1.4.1; python_version >= "3"
Using cached scipy-1.4.1-cp37-cp37m-win_amd64.whl (30.9 MB)
Collecting keras-applications>=1.0.8
Using cached Keras_Applications-1.0.8-py3-none-any.whl (50 kB)
Collecting google-pasta>=0.1.6
Using cached google_pasta-0.1.8-py3-none-any.whl (57 kB)
Collecting numpy<2.0,>=1.16.0
Using cached numpy-1.18.1-cp37-cp37m-win_amd64.whl (12.8 MB)
Processing c:\users\shash\appdata\local\pip\cache\wheels\2c\b1\94\43d03e130b929aae7ba3f8d15cbd7bc0d1cb5bb38a5c721833\opt_einsum-3.1.0-cp37-none-any.whl
Processing c:\users\shash\appdata\local\pip\cache\wheels\7c\06\54\bc84598ba1daf8f970247f550b175aaaee85f68b4b0c5ab2c6\termcolor-1.1.0-cp37-none-any.whl
Collecting wheel>=0.26; python_version >= "3"
Using cached wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Collecting astor>=0.6.0
Using cached astor-0.8.1-py2.py3-none-any.whl (27 kB)
Collecting wrapt>=1.11.1
Downloading wrapt-1.12.0.tar.gz (27 kB)
Collecting tensorboard<2.2.0,>=2.1.0
Using cached tensorboard-2.1.0-py3-none-any.whl (3.8 MB)
Collecting grpcio>=1.8.6
Using cached grpcio-1.27.2-cp37-cp37m-win_amd64.whl (1.9 MB)
Collecting keras-preprocessing>=1.1.0
Using cached Keras_Preprocessing-1.1.0-py2.py3-none-any.whl (41 kB)
Processing c:\users\shash\appdata\local\pip\cache\wheels\8e\28\49\fad4e7f0b9a1227708cbbee4487ac8558a7334849cb81c813d\absl_py-0.9.0-cp37-none-any.whl
Collecting protobuf>=3.8.0
Using cached protobuf-3.11.3-cp37-cp37m-win_amd64.whl (1.0 MB)
Collecting tensorflow-gpu-estimator<2.2.0,>=2.1.0rc0
Using cached tensorflow_gpu_estimator-2.1.0-py2.py3-none-any.whl (464 kB)
Collecting six>=1.12.0
Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Processing c:\users\shash\appdata\local\pip\cache\wheels\5c\2e\7e\a1d4d4fcebe6c381f378ce7743a3ced3699feb89bcfbdadadd\gast-0.2.2-cp37-none-any.whl
Collecting h5py
Using cached h5py-2.10.0-cp37-cp37m-win_amd64.whl (2.5 MB)
Collecting google-auth<2,>=1.6.3
Using cached google_auth-1.11.2-py2.py3-none-any.whl (76 kB)
Collecting requests<3,>=2.21.0
Downloading requests-2.23.0-py2.py3-none-any.whl (58 kB)
|████████████████████████████████| 58 kB 443 kB/s
Collecting markdown>=2.6.8
Using cached Markdown-3.2.1-py2.py3-none-any.whl (88 kB)
Collecting setuptools>=41.0.0
Using cached setuptools-45.2.0-py3-none-any.whl (584 kB)
Collecting werkzeug>=0.11.15
Using cached Werkzeug-1.0.0-py2.py3-none-any.whl (298 kB)
Collecting google-auth-oauthlib<0.5,>=0.4.1
Using cached google_auth_oauthlib-0.4.1-py2.py3-none-any.whl (18 kB)
Collecting cachetools<5.0,>=2.0.0
Using cached cachetools-4.0.0-py3-none-any.whl (10 kB)
Collecting pyasn1-modules>=0.2.1
Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting rsa<4.1,>=3.1.4
Using cached rsa-4.0-py2.py3-none-any.whl (38 kB)
Collecting chardet<4,>=3.0.2
Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2019.11.28-py2.py3-none-any.whl (156 kB)
Collecting idna<3,>=2.5
Downloading idna-2.9-py2.py3-none-any.whl (58 kB)
|████████████████████████████████| 58 kB 363 kB/s
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
Using cached urllib3-1.25.8-py2.py3-none-any.whl (125 kB)
Collecting requests-oauthlib>=0.7.0
Using cached requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Collecting pyasn1<0.5.0,>=0.4.6
Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting oauthlib>=3.0.0
Using cached oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
Building wheels for collected packages: wrapt
Building wheel for wrapt (setup.py) ... done
Created wheel for wrapt: filename=wrapt-1.12.0-py3-none-any.whl size=19565 sha256=8fcffad77f7712e3dcab457e1b9f25ef120f4fd4e925ce3049c8b256f9ec31fa
Stored in directory: c:\users\shash\appdata\local\pip\cache\wheels\e5\78\69\f40ab7cae531c8f07003a9d1b4b81ebec14cda95519c57e7dd
Successfully built wrapt
ERROR: Error checking for conflicts.
Traceback (most recent call last):
File "d:\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3021, in _dep_map
return self.__dep_map
File "d:\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2815, in __getattr__
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "d:\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3012, in _parsed_pkg_info
return self._pkg_info
File "d:\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2815, in __getattr__
raise AttributeError(attr)
AttributeError: _pkg_info
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "d:\anaconda3\lib\site-packages\pip\_internal\commands\install.py", line 517, in _warn_about_conflicts
package_set, _dep_info = check_install_conflicts(to_install)
File "d:\anaconda3\lib\site-packages\pip\_internal\operations\check.py", line 114, in check_install_conflicts
package_set, _ = create_package_set_from_installed()
File "d:\anaconda3\lib\site-packages\pip\_internal\operations\check.py", line 53, in create_package_set_from_installed
package_set[name] = PackageDetails(dist.version, dist.requires())
File "d:\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2736, in requires
dm = self._dep_map
File "d:\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3023, in _dep_map
self.__dep_map = self._compute_dependencies()
File "d:\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3032, in _compute_dependencies
for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:
File "d:\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3014, in _parsed_pkg_info
metadata = self.get_metadata(self.PKG_INFO)
File "d:\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1420, in get_metadata
value = self._get(path)
File "d:\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1616, in _get
with open(path, 'rb') as stream:
FileNotFoundError: [Errno 2] No such file or directory: 'd:\\anaconda3\\lib\\site-packages\\pyparsing-2.4.2.dist-info\\METADATA'
Installing collected packages: numpy, scipy, six, h5py, keras-applications, google-pasta, opt-einsum, termcolor, wheel, astor, wrapt, cachetools, pyasn1, pyasn1-modules, setuptools, rsa, google-auth, chardet, certifi, idna, urllib3, requests, absl-py, markdown, protobuf, grpcio, werkzeug, oauthlib, requests-oauthlib, google-auth-oauthlib, tensorboard, keras-preprocessing, tensorflow-gpu-estimator, gast, tensorflow-gpu
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'd:\\anaconda3\\Lib\\site-packages\\numpy\\random\\tests\\data\\mt19937-testset-1.csv'
Consider using the `--user` option or check the permissions.```
Also I see an error on trying to import tensorflow within a shell command.
The error is as follows:
```C:\Users\shash>python
Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
Warning:
This Python interpreter is in a conda environment, but the environment has
not been activated. Libraries may fail to load. To activate this environment
please see https://conda.io/activation
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
D:\Anaconda3\lib\site-packages\numpy\_distributor_init.py:32: UserWarning: loaded more than 1 DLL from .libs:
D:\Anaconda3\lib\site-packages\numpy\.libs\libopenblas.PYQHXLVVQ7VESDPUVUADXEVJOBGHJPAY.gfortran-win_amd64.dll
D:\Anaconda3\lib\site-packages\numpy\.libs\libopenblas.TXA6YQSD3GCQQC22GEQ54J2UDCXDXHWN.gfortran-win_amd64.dll
stacklevel=1)
2020-02-29 17:24:19.169004: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2020-02-29 17:24:19.175109: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
>>> ```
Thanks in advance.
Try using this:
pip install --user some_pkg

ModuleNotFoundError: No module named 'elmoformanylangs' when I installed ELMo in Colab

I followed the following steps to install ELMoForManyLangs
! git clone https://github.com/HIT-SCIR/ELMoForManyLangs.git
cd ELMoForManyLangs/
! python setup.py install
from elmoformanylangs import Embedder
ModuleNotFoundError Traceback (most recent call last)
in ()
----> 1 from elmoformanylangs import Embedder
2 # e = Embedder('./zhs.model/')
But I did successfully deployed it.
running install
running bdist_egg
running egg_info
creating elmoformanylangs.egg-info
writing elmoformanylangs.egg-info/PKG-INFO
writing dependency_links to elmoformanylangs.egg-info/dependency_links.txt
writing requirements to elmoformanylangs.egg-info/requires.txt
writing top-level names to elmoformanylangs.egg-info/top_level.txt
writing manifest file 'elmoformanylangs.egg-info/SOURCES.txt'
writing manifest file 'elmoformanylangs.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/elmoformanylangs
copying elmoformanylangs/biLM.py -> build/lib/elmoformanylangs
copying elmoformanylangs/__init__.py -> build/lib/elmoformanylangs
copying elmoformanylangs/__main__.py -> build/lib/elmoformanylangs
copying elmoformanylangs/utils.py -> build/lib/elmoformanylangs
copying elmoformanylangs/elmo.py -> build/lib/elmoformanylangs
copying elmoformanylangs/dataloader.py -> build/lib/elmoformanylangs
copying elmoformanylangs/frontend.py -> build/lib/elmoformanylangs
creating build/lib/elmoformanylangs/modules
copying elmoformanylangs/modules/lstm_cell_with_projection.py -> build/lib/elmoformanylangs/modules
copying elmoformanylangs/modules/encoder_base.py -> build/lib/elmoformanylangs/modules
copying elmoformanylangs/modules/embedding_layer.py -> build/lib/elmoformanylangs/modules
copying elmoformanylangs/modules/lstm.py -> build/lib/elmoformanylangs/modules
copying elmoformanylangs/modules/__init__.py -> build/lib/elmoformanylangs/modules
copying elmoformanylangs/modules/util.py -> build/lib/elmoformanylangs/modules
copying elmoformanylangs/modules/classify_layer.py -> build/lib/elmoformanylangs/modules
copying elmoformanylangs/modules/token_embedder.py -> build/lib/elmoformanylangs/modules
copying elmoformanylangs/modules/elmo.py -> build/lib/elmoformanylangs/modules
copying elmoformanylangs/modules/highway.py -> build/lib/elmoformanylangs/modules
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/elmoformanylangs
copying build/lib/elmoformanylangs/biLM.py -> build/bdist.linux-x86_64/egg/elmoformanylangs
copying build/lib/elmoformanylangs/__init__.py -> build/bdist.linux-x86_64/egg/elmoformanylangs
copying build/lib/elmoformanylangs/__main__.py -> build/bdist.linux-x86_64/egg/elmoformanylangs
copying build/lib/elmoformanylangs/utils.py -> build/bdist.linux-x86_64/egg/elmoformanylangs
copying build/lib/elmoformanylangs/elmo.py -> build/bdist.linux-x86_64/egg/elmoformanylangs
creating build/bdist.linux-x86_64/egg/elmoformanylangs/modules
copying build/lib/elmoformanylangs/modules/lstm_cell_with_projection.py -> build/bdist.linux-x86_64/egg/elmoformanylangs/modules
copying build/lib/elmoformanylangs/modules/encoder_base.py -> build/bdist.linux-x86_64/egg/elmoformanylangs/modules
copying build/lib/elmoformanylangs/modules/embedding_layer.py -> build/bdist.linux-x86_64/egg/elmoformanylangs/modules
copying build/lib/elmoformanylangs/modules/lstm.py -> build/bdist.linux-x86_64/egg/elmoformanylangs/modules
copying build/lib/elmoformanylangs/modules/__init__.py -> build/bdist.linux-x86_64/egg/elmoformanylangs/modules
copying build/lib/elmoformanylangs/modules/util.py -> build/bdist.linux-x86_64/egg/elmoformanylangs/modules
copying build/lib/elmoformanylangs/modules/classify_layer.py -> build/bdist.linux-x86_64/egg/elmoformanylangs/modules
copying build/lib/elmoformanylangs/modules/token_embedder.py -> build/bdist.linux-x86_64/egg/elmoformanylangs/modules
copying build/lib/elmoformanylangs/modules/elmo.py -> build/bdist.linux-x86_64/egg/elmoformanylangs/modules
copying build/lib/elmoformanylangs/modules/highway.py -> build/bdist.linux-x86_64/egg/elmoformanylangs/modules
copying build/lib/elmoformanylangs/dataloader.py -> build/bdist.linux-x86_64/egg/elmoformanylangs
copying build/lib/elmoformanylangs/frontend.py -> build/bdist.linux-x86_64/egg/elmoformanylangs
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/biLM.py to biLM.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/__main__.py to __main__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/utils.py to utils.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/elmo.py to elmo.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/modules/lstm_cell_with_projection.py to lstm_cell_with_projection.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/modules/encoder_base.py to encoder_base.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/modules/embedding_layer.py to embedding_layer.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/modules/lstm.py to lstm.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/modules/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/modules/util.py to util.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/modules/classify_layer.py to classify_layer.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/modules/token_embedder.py to token_embedder.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/modules/elmo.py to elmo.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/modules/highway.py to highway.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/dataloader.py to dataloader.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/elmoformanylangs/frontend.py to frontend.cpython-36.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying elmoformanylangs.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying elmoformanylangs.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying elmoformanylangs.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying elmoformanylangs.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying elmoformanylangs.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/elmoformanylangs-0.0.2-py3.6.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing elmoformanylangs-0.0.2-py3.6.egg
Copying elmoformanylangs-0.0.2-py3.6.egg to /usr/local/lib/python3.6/dist-packages
Adding elmoformanylangs 0.0.2 to easy-install.pth file
Installed /usr/local/lib/python3.6/dist-packages/elmoformanylangs-0.0.2-py3.6.egg
Processing dependencies for elmoformanylangs==0.0.2
Searching for overrides
Reading https://pypi.org/simple/overrides/
Downloading https://files.pythonhosted.org/packages/7a/b2/2cb6a3fc8ee1dc8617e07e476be19723748ddfcce0c6b9db7a5f2d5b9598/overrides-2.0.tar.gz#sha256=63293d9b03629507396ddd961bd5773f136d602f34b9b3da93351dfa163fc0d9
Best match: overrides 2.0
Processing overrides-2.0.tar.gz
Writing /tmp/easy_install-_c47zox2/overrides-2.0/setup.cfg
Running overrides-2.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_c47zox2/overrides-2.0/egg-dist-tmp-677wh9fn
zip_safe flag not set; analyzing archive contents...
Moving overrides-2.0-py3.6.egg to /usr/local/lib/python3.6/dist-packages
Adding overrides 2.0 to easy-install.pth file
Installed /usr/local/lib/python3.6/dist-packages/overrides-2.0-py3.6.egg
Searching for numpy==1.17.2
Best match: numpy 1.17.2
Adding numpy 1.17.2 to easy-install.pth file
Installing f2py script to /usr/local/bin
Installing f2py3 script to /usr/local/bin
Installing f2py3.6 script to /usr/local/bin
Using /tensorflow-2.0.0-rc2/python3.6
Searching for h5py==2.10.0
Best match: h5py 2.10.0
Adding h5py 2.10.0 to easy-install.pth file
Using /tensorflow-2.0.0-rc2/python3.6
Searching for torch==1.2.0
Best match: torch 1.2.0
Adding torch 1.2.0 to easy-install.pth file
Installing convert-caffe2-to-onnx script to /usr/local/bin
Installing convert-onnx-to-caffe2 script to /usr/local/bin
Using /usr/local/lib/python3.6/dist-packages
Searching for six==1.12.0
Best match: six 1.12.0
Adding six 1.12.0 to easy-install.pth file
Using /usr/local/lib/python3.6/dist-packages
Finished processing dependencies for elmoformanylangs==0.0.2
The path in e = Embedder('./zhs.model/') is the absolute path, it is not the relative path.
e.g. '/content/drive/Colab Notebooks/../zhs.model/'

installing lxml on 64 bit windows

So I'm trying to install lxml on my machine, and I can't seem to get it to work.
I've got Windows 8.1 64-bit and python 3.5
I've used both
pip install lxml
and
easy_install lxml
I keep getting this error message:
C:\Users\jgarber\Downloads>pip install readability-lxml --upgrade Requirement already up-to-date: readability-lxml in c:\python\lib\site-packages\ readability_lxml-0.6.2-py3.5.egg Requirement already up-to-date: chardet in c:\python\lib\site-packages (from rea dability-lxml) Collecting lxml (from readability-lxml) Using cached lxml-3.6.4.tar.gz Requirement already up-to-date: cssselect in c:\python\lib\site-packages\csssele ct-1.0.0-py3.5.egg (from readability-lxml) Installing collected packages: lxml Running setup.py install for lxml ... error
Complete output from command c:\python\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\jgarber\\AppData\\Local\\Temp\\pip-build-bypbiu8j\ \lxml\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().r eplace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\jgarber\AppD ata\Local\Temp\pip-j8svsde4-record\install-record.txt
--single-version-externall y-managed --compile:
Building lxml version 3.6.4.
Building without Cython.
ERROR: b"'xslt-config' is not recognized as an internal or external command, \r\noperable program or batch file.\r\n"
** make sure the development packages of libxml2 and libxslt are installed *
*
Using build configuration of libxslt
running install
running build
running build_py
creating build
creating build\lib.win32-3.5
creating build\lib.win32-3.5\lxml
copying src\lxml\builder.py -> build\lib.win32-3.5\lxml
copying src\lxml\cssselect.py -> build\lib.win32-3.5\lxml
copying src\lxml\doctestcompare.py -> build\lib.win32-3.5\lxml
copying src\lxml\ElementInclude.py -> build\lib.win32-3.5\lxml
copying src\lxml\pyclasslookup.py -> build\lib.win32-3.5\lxml
copying src\lxml\sax.py -> build\lib.win32-3.5\lxml
copying src\lxml\usedoctest.py -> build\lib.win32-3.5\lxml
copying src\lxml\_elementpath.py -> build\lib.win32-3.5\lxml
copying src\lxml\__init__.py -> build\lib.win32-3.5\lxml
creating build\lib.win32-3.5\lxml\includes
copying src\lxml\includes\__init__.py -> build\lib.win32-3.5\lxml\includes
creating build\lib.win32-3.5\lxml\html
copying src\lxml\html\builder.py -> build\lib.win32-3.5\lxml\html
copying src\lxml\html\clean.py -> build\lib.win32-3.5\lxml\html
copying src\lxml\html\defs.py -> build\lib.win32-3.5\lxml\html
copying src\lxml\html\diff.py -> build\lib.win32-3.5\lxml\html
copying src\lxml\html\ElementSoup.py -> build\lib.win32-3.5\lxml\html
copying src\lxml\html\formfill.py -> build\lib.win32-3.5\lxml\html
copying src\lxml\html\html5parser.py -> build\lib.win32-3.5\lxml\html
copying src\lxml\html\soupparser.py -> build\lib.win32-3.5\lxml\html
copying src\lxml\html\usedoctest.py -> build\lib.win32-3.5\lxml\html
copying src\lxml\html\_diffcommand.py -> build\lib.win32-3.5\lxml\html
copying src\lxml\html\_html5builder.py -> build\lib.win32-3.5\lxml\html
copying src\lxml\html\_setmixin.py -> build\lib.win32-3.5\lxml\html
copying src\lxml\html\__init__.py -> build\lib.win32-3.5\lxml\html
creating build\lib.win32-3.5\lxml\isoschematron
copying src\lxml\isoschematron\__init__.py -> build\lib.win32-3.5\lxml\isosc hematron
copying src\lxml\lxml.etree.h -> build\lib.win32-3.5\lxml
copying src\lxml\lxml.etree_api.h -> build\lib.win32-3.5\lxml
copying src\lxml\includes\c14n.pxd -> build\lib.win32-3.5\lxml\includes
copying src\lxml\includes\config.pxd -> build\lib.win32-3.5\lxml\includes
copying src\lxml\includes\dtdvalid.pxd -> build\lib.win32-3.5\lxml\includes
copying src\lxml\includes\etreepublic.pxd -> build\lib.win32-3.5\lxml\includ es
copying src\lxml\includes\htmlparser.pxd -> build\lib.win32-3.5\lxml\include s
copying src\lxml\includes\relaxng.pxd -> build\lib.win32-3.5\lxml\includes
copying src\lxml\includes\schematron.pxd -> build\lib.win32-3.5\lxml\include s
copying src\lxml\includes\tree.pxd -> build\lib.win32-3.5\lxml\includes
copying src\lxml\includes\uri.pxd -> build\lib.win32-3.5\lxml\includes
copying src\lxml\includes\xinclude.pxd -> build\lib.win32-3.5\lxml\includes
copying src\lxml\includes\xmlerror.pxd -> build\lib.win32-3.5\lxml\includes
copying src\lxml\includes\xmlparser.pxd -> build\lib.win32-3.5\lxml\includes
copying src\lxml\includes\xmlschema.pxd -> build\lib.win32-3.5\lxml\includes
copying src\lxml\includes\xpath.pxd -> build\lib.win32-3.5\lxml\includes
copying src\lxml\includes\xslt.pxd -> build\lib.win32-3.5\lxml\includes
copying src\lxml\includes\etree_defs.h -> build\lib.win32-3.5\lxml\includes
copying src\lxml\includes\lxml-version.h -> build\lib.win32-3.5\lxml\include s
creating build\lib.win32-3.5\lxml\isoschematron\resources
creating build\lib.win32-3.5\lxml\isoschematron\resources\rng
copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib .win32-3.5\lxml\isoschematron\resources\rng
creating build\lib.win32-3.5\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win 32-3.5\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win 32-3.5\lxml\isoschematron\resources\xsl
creating build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron
-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstra ct_expand.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schema tron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_i nclude.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematro n-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schema tron_message.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-sch ematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schema tron_skeleton_for_xslt1.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\ xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_f or_xslt1.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schemat ron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt
-> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build\temp.win32-3.5
creating build\temp.win32-3.5\Release
creating build\temp.win32-3.5\Release\src
creating build\temp.win32-3.5\Release\src\lxml
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Isrc\lxml\includes
-Ic:\python\include -Ic:\python\in clude "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\P rogram Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program File s (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\
8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcsrc \lxml\lxml.etree.c /Fobuild\temp.win32-3.5\Release\src\lxml\lxml.etree.obj -w
cl : Command line warning D9025 : overriding '/W3' with '/w'
lxml.etree.c
src\lxml\includes\etree_defs.h(14): fatal error C1083: Cannot open include f ile: 'libxml/xmlversion.h': No such file or directory
Compile failed: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14 .0\\VC\\BIN\\cl.exe' failed with exit status 2
creating Users
creating Users\jgarber
creating Users\jgarber\AppData
creating Users\jgarber\AppData\Local
creating Users\jgarber\AppData\Local\Temp
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 "-IC:\Program Files (x86)\Micro soft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\in clude\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shar ed" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files ( x86)\Windows Kits\8.1\include\winrt" /TcC:\Users\jgarber\AppData\Local\Temp\xmlX PathInit_qrahzea.c /FoUsers\jgarber\AppData\Local\Temp\xmlXPathInit_qrahzea.obj
xmlXPathInit_qrahzea.c
C:\Users\jgarber\AppData\Local\Temp\xmlXPathInit_qrahzea.c(1): fatal error C 1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
****************************************************************************
*****
Could not find function xmlCheckVersion in library libxml2. Is libxml2 insta lled?
****************************************************************************
*****
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\B IN\\cl.exe' failed with exit status 2
---------------------------------------- Command "c:\python\python.exe -u -c "import setuptools, tokenize;__file__='C:\\U sers\\jgarber\\AppData\\Local\\Temp\\pip-build-bypbiu8j\\lxml\\setup.py';exec(co mpile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __ file__, 'exec'))" install --record C:\Users\jgarber\AppData\Local\Temp\pip-j8svs de4-record\install-record.txt --single-version-externally-managed
--compile" fai led with error code 1 in C:\Users\jgarber\AppData\Local\Temp\pip-build-bypbiu8j\ lxml\
I have also tried downloading the .whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml and attempted to manually install the wheel but receive this error message:
C:\Users\jgarber\Downloads>pip install lxml-3.6.4-cp35-cp35m-win_amd64.whl
lxml-3.6.4-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.
even with the python -m pip install statement.
At this point I'm not sure what I'm missing, any help would be greatly appreciated.
By default, Python will install as 32-bit on Windows, even on 64-bit systems. Therefore, to match this, you must select the wheel for 32-bit systems.
You can verify that your Python interpreter is 32-bit, because the REPL will look like this when starting:
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32
You should pick the lxml-3.6.4-cp35-cp35m-win32.whl package for Python 3.5 on Windows (unless you explicitly selected 64-bit when downloading Python) which should solve your issue.
They fixed this issue as of lxml version 4.2.5.
If you are still getting this issue, see if your requirements file specifies a specific version of lxml. If so, you should be able to fix the problem by updating the specified version to 4.2.5 or above.