How can I install polyglot in Python anaconda? - python

I want to install polyglot library in python anaconda environment but I can't. Can you help me?
pip install polyglot
My error code:
Complete output (11 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
copying icu.py -> build\lib.win-amd64-3.8
copying PyICU.py -> build\lib.win-amd64-3.8
copying docs.py -> build\lib.win-amd64-3.8
running build_ext
building '_icu' 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: Command errored out with exit status 1: 'c:\users\sy\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\sy\\AppData\\Local\\Temp\\pip-install-whiht1cx\\pyicu_635b71acf5c54c90ac9cff1c627151b2\\setup.py'"'"'; __file__='"'"'C:\\Users\\sy\\AppData\\Local\\Temp\\pip-install-whiht1cx\\pyicu_635b71acf5c54c90ac9cff1c627151b2\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\sy\AppData\Local\Temp\pip-record-0n7v7c8v\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\sy\anaconda3\Include\PyICU' Check the logs for full command output.

Related

Error in installing fastapi in virtual environment

Trying to install fastapi:
(venv) D:\api>pip install fastapi[all]
Getting the following error:
ERROR: Command errored out with exit status 1:
command: 'D:\api\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\LENOVO\\AppData\\Local\\Temp\\pip-install-od3lrye2\\httptools_c5b546c7a9f54ea0831a3639b44e79da\\setup.py'"'"'; __file__='"'"'C:\\Users\\LENOVO\\AppData\\Local\\Temp\\pip-install-od3lrye2\\httptools_c5b546c7a9f54ea0831a3639b44e79da\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\LENOVO\AppData\Local\Temp\pip-record-x1m88nnc\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\api\venv\include\site\python3.10\httptools'
cwd: C:\Users\LENOVO\AppData\Local\Temp\pip-install-od3lrye2\httptools_c5b546c7a9f54ea0831a3639b44e79da\
Complete output (25 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\httptools
copying httptools\_version.py -> build\lib.win-amd64-3.10\httptools
copying httptools\__init__.py -> build\lib.win-amd64-3.10\httptools
creating build\lib.win-amd64-3.10\httptools\parser
copying httptools\parser\errors.py -> build\lib.win-amd64-3.10\httptools\parser
copying httptools\parser\__init__.py -> build\lib.win-amd64-3.10\httptools\parser
running egg_info
writing httptools.egg-info\PKG-INFO
writing dependency_links to httptools.egg-info\dependency_links.txt
writing requirements to httptools.egg-info\requires.txt
writing top-level names to httptools.egg-info\top_level.txt
reading manifest file 'httptools.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'httptools.egg-info\SOURCES.txt'
copying httptools\parser\parser.c -> build\lib.win-amd64-3.10\httptools\parser
copying httptools\parser\url_parser.c -> build\lib.win-amd64-3.10\httptools\parser
running build_ext
building 'httptools.parser.parser' 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: Command errored out with exit status 1: 'D:\api\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\LENOVO\\AppData\\Local\\Temp\\pip-install-od3lrye2\\httptools_c5b546c7a9f54ea0831a3639b44e79da\\setup.py'"'"'; __file__='"'"'C:\\Users\\LENOVO\\AppData\\Local\\Temp\\pip-install-od3lrye2\\httptools_c5b546c7a9f54ea0831a3639b44e79da\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\LENOVO\AppData\Local\Temp\pip-record-x1m88nnc\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\api\venv\include\site\python3.10\httptools' Check the logs for full command output.
try use this:
pip install fastapi
https://pypi.org/project/fastapi/

ERROR: Failed building wheel for dependency-injector, ERROR: Failed building wheel for pyduktape

Failed to get both dependency injector and pyduktape in Django project requirements.txt. It asked to install Visual C++ 14.0 or greater but it is already there.
requirements.txt containts dependency-injector==3.15.6 and pyduktape==0.0.6
Tried with Python 3.7, pip 21.3.1, and pipenv version 2021.5.29
Building wheels for collected packages: dependency-injector, pyduktape
Building wheel for dependency-injector (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\yasiru\appdata\local\programs\python\python37\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\yasi
ru\\AppData\\Local\\Temp\\pip-install-ai16fcys\\dependency-injector_e905913ba3f247b096ecaaf379d20b5b\\setup.py'"'"'; __file__='"'"'C:\\Users\\yasiru\\AppData\\Loca
l\\Temp\\pip-install-ai16fcys\\dependency-injector_e905913ba3f247b096ecaaf379d20b5b\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path
.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(co
de, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\yasiru\AppData\Local\Temp\pip-wheel-23n96w5t'
cwd: C:\Users\yasiru\AppData\Local\Temp\pip-install-ai16fcys\dependency-injector_e905913ba3f247b096ecaaf379d20b5b\
Complete output (13 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\dependency_injector
copying src\dependency_injector\errors.py -> build\lib.win-amd64-3.7\dependency_injector
copying src\dependency_injector\__init__.py -> build\lib.win-amd64-3.7\dependency_injector
copying src\dependency_injector\containers.pxd -> build\lib.win-amd64-3.7\dependency_injector
copying src\dependency_injector\providers.pxd -> build\lib.win-amd64-3.7\dependency_injector
running build_ext
building 'dependency_injector.containers' 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/][1]
----------------------------------------
ERROR: Failed building wheel for dependency-injector
Running setup.py clean for dependency-injector
Building wheel for pyduktape (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\yasiru\appdata\local\programs\python\python37\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\yasi
ru\\AppData\\Local\\Temp\\pip-install-ai16fcys\\pyduktape_d628ca64f5d1498c83b77edf959e9080\\setup.py'"'"'; __file__='"'"'C:\\Users\\yasiru\\AppData\\Local\\Temp\\p
ip-install-ai16fcys\\pyduktape_d628ca64f5d1498c83b77edf959e9080\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) el
se io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'e
xec'"'"'))' bdist_wheel -d 'C:\Users\yasiru\AppData\Local\Temp\pip-wheel-gvd80r9x'
cwd: C:\Users\yasiru\AppData\Local\Temp\pip-install-ai16fcys\pyduktape_d628ca64f5d1498c83b77edf959e9080\
Complete output (10 lines):
c:\users\yasiru\appdata\local\programs\python\python37\lib\site-packages\setuptools\installer.py:30: SetuptoolsDeprecationWarning: setuptools.installer is deprec
ated. Requirements should be satisfied by a PEP 517 installer.
SetuptoolsDeprecationWarning,
running bdist_wheel
running build
running build_ext
cythoning pyduktape.pyx to pyduktape.c
c:\users\yasiru\appdata\local\temp\pip-install-ai16fcys\pyduktape_d628ca64f5d1498c83b77edf959e9080\.eggs\cython-0.29.25-py3.7.egg\Cython\Compiler\Main.py:369: Fu
tureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\yasiru\AppData\Local\Temp\pip-in
stall-ai16fcys\pyduktape_d628ca64f5d1498c83b77edf959e9080\pyduktape.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'pyduktape' 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 pyduktape
Running setup.py clean for pyduktape
Failed to build dependency-injector pyduktape
Installing collected packages: pyduktape, dependency-injector
Running setup.py install for pyduktape ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\yasiru\appdata\local\programs\python\python37\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ya
siru\\AppData\\Local\\Temp\\pip-install-ai16fcys\\pyduktape_d628ca64f5d1498c83b77edf959e9080\\setup.py'"'"'; __file__='"'"'C:\\Users\\yasiru\\AppData\\Local\\Temp\
\pip-install-ai16fcys\\pyduktape_d628ca64f5d1498c83b77edf959e9080\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__)
else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"
'exec'"'"'))' install --record 'C:\Users\yasiru\AppData\Local\Temp\pip-record-wgnhusiv\install-record.txt' --single-version-externally-managed --compile --install-
headers 'c:\users\yasiru\appdata\local\programs\python\python37\Include\pyduktape'
cwd: C:\Users\yasiru\AppData\Local\Temp\pip-install-ai16fcys\pyduktape_d628ca64f5d1498c83b77edf959e9080\
Complete output (10 lines):
c:\users\yasiru\appdata\local\programs\python\python37\lib\site-packages\setuptools\installer.py:30: SetuptoolsDeprecationWarning: setuptools.installer is depr
ecated. Requirements should be satisfied by a PEP 517 installer.
SetuptoolsDeprecationWarning,
running install
c:\users\yasiru\appdata\local\programs\python\python37\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is de
precated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_ext
skipping 'pyduktape.c' Cython extension (up-to-date)
building 'pyduktape' 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: Command errored out with exit status 1: 'c:\users\yasiru\appdata\local\programs\python\python37\python.exe' -u -c 'import io, os, sys, setuptools, tokenize;
sys.argv[0] = '"'"'C:\\Users\\yasiru\\AppData\\Local\\Temp\\pip-install-ai16fcys\\pyduktape_d628ca64f5d1498c83b77edf959e9080\\setup.py'"'"'; __file__='"'"'C:\\Use
rs\\yasiru\\AppData\\Local\\Temp\\pip-install-ai16fcys\\pyduktape_d628ca64f5d1498c83b77edf959e9080\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__fil
e__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();
exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\yasiru\AppData\Local\Temp\pip-record-wgnhusiv\install-record.txt' --single-version-extern
ally-managed --compile --install-headers 'c:\users\yasiru\appdata\local\programs\python\python37\Include\pyduktape' Check the logs for full command output.'''
[1]: https://visualstudio.microsoft.com/visual-cpp-build-tools/

Failure to install pyaudio [duplicate]

This question already has an answer here:
I can't install pyaudio on Windows 11? [duplicate]
(1 answer)
Closed 1 year ago.
I am attempting to make my own alexa and everytime I try to install pyaudio via the PyCharm terminal it comes up with this huge error:
Collecting pyaudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Building wheels for collected packages: pyaudio
Building wheel for pyaudio (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\rajan\PycharmProjects\jarvisv2\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\rajan\\AppData\\Lo
cal\\Temp\\pip-install-88sq5u2t\\pyaudio_23e33d64381a4b7aa4337aa861032198\\setup.py'"'"'; __file__='"'"'C:\\Users\\rajan\\AppData\\Local\\Temp\\pip-install-88sq5u2t\\pyaudio_2
3e33d64381a4b7aa4337aa861032198\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import s
etup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\rajan\AppData\Local
\Temp\pip-wheel-hc4a9xm0'
cwd: C:\Users\rajan\AppData\Local\Temp\pip-install-88sq5u2t\pyaudio_23e33d64381a4b7aa4337aa861032198\
Complete output (9 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying src\pyaudio.py -> build\lib.win-amd64-3.9
running build_ext
building '_portaudio' 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 pyaudio
Running setup.py clean for pyaudio
Failed to build pyaudio
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\rajan\PycharmProjects\jarvisv2\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\rajan\\AppData\\
Local\\Temp\\pip-install-88sq5u2t\\pyaudio_23e33d64381a4b7aa4337aa861032198\\setup.py'"'"'; __file__='"'"'C:\\Users\\rajan\\AppData\\Local\\Temp\\pip-install-88sq5u2t\\pyaudio
_23e33d64381a4b7aa4337aa861032198\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import
setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\rajan\AppData\L
ocal\Temp\pip-record-n4u5ra3r\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\rajan\PycharmProjects\jarvisv2\venv\include\site\py
thon3.9\pyaudio'
cwd: C:\Users\rajan\AppData\Local\Temp\pip-install-88sq5u2t\pyaudio_23e33d64381a4b7aa4337aa861032198\
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying src\pyaudio.py -> build\lib.win-amd64-3.9
running build_ext
building '_portaudio' 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: Command errored out with exit status 1: 'C:\Users\rajan\PycharmProjects\jarvisv2\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\rajan\\AppData\\Local\\Temp\\pip-install-88sq5u2t\\pyaudio_23e33d64381a4b7aa4337aa861032198\\setup.py'"'"'; __file__='"'"'C:\\Users\\rajan\\AppData\\Local\\Te
mp\\pip-install-88sq5u2t\\pyaudio_23e33d64381a4b7aa4337aa861032198\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.Str
ingIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install -
-record 'C:\Users\rajan\AppData\Local\Temp\pip-record-n4u5ra3r\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\rajan\PycharmProje
cts\jarvisv2\venv\include\site\python3.9\pyaudio' Check the logs for full command output.
WARNING: You are using pip version 21.1.2; however, version 21.3.1 is available.
You should consider upgrading via the 'C:\Users\*****\PycharmProjects\jarvisv2\venv\Scripts\python.exe -m pip install --upgrade pip' command.
How to solve this?
You need to install Microsoft Visual C++ 14.0 or greater.
Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
Just download and install those build tools, then try again.
When installing certain packages, certain MS tools are required to build them.

ExGUtils 3.0 won't install

Hello I am trying to install the ExGUtils 3.0 in my python environment on my VS code on my windows computer. I keep on getting an error which is this:
Collecting ExGUtils
Using cached ExGUtils-3.0.tar.gz (377 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Leo\Documents\Python setup VSCode\PythonWorkSpace\.venv\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Leo\\AppData\\Local\\Temp\\pip-install-0sbakymg\\exgutils_c5150aa0bfa44ea89ce16af14a8507f3\\setup.py'"'"'; __file__='"'"'C:\\Users\\Leo\\AppData\\Local\\Temp\\pip-install-0sbakymg\\exgutils_c5150aa0bfa44ea89ce16af14a8507f3\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Leo\AppData\Local\Temp\pip-pip-egg-info-8ujlwys6'
cwd: C:\Users\Leo\AppData\Local\Temp\pip-install-0sbakymg\exgutils_c5150aa0bfa44ea89ce16af14a8507f3\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Leo\AppData\Local\Temp\pip-install-0sbakymg\exgutils_c5150aa0bfa44ea89ce16af14a8507f3\setup.py", line 29, in <module>
bla = raw_input("Compile C [Y/n]? ")
NameError: name 'raw_input' is not defined
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/af/e7/006322dd2e5d3644ac14b1e49c6c77bf1836598eacfb36ef2a96c85b85b3/ExGUtils-3.0.tar.gz#sha256=413cd9f84a8bbff9c1cee1388775a5cd9c7545e6bfb28502d988cf6b2de0515e (from https://pypi.org/simple/exgutils/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached ExGUtils-2.0.tar.gz (873 kB)
Building wheels for collected packages: ExGUtils
Building wheel for ExGUtils (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Leo\Documents\Python setup VSCode\PythonWorkSpace\.venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Leo\\AppData\\Local\\Temp\\pip-install-0sbakymg\\exgutils_ed75e0edba84415a97393b42b74dfabb\\setup.py'"'"'; __file__='"'"'C:\\Users\\Leo\\AppData\\Local\\Temp\\pip-install-0sbakymg\\exgutils_ed75e0edba84415a97393b42b74dfabb\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Leo\AppData\Local\Temp\pip-wheel-q2fegjyw'
cwd: C:\Users\Leo\AppData\Local\Temp\pip-install-0sbakymg\exgutils_ed75e0edba84415a97393b42b74dfabb\
Complete output (11 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\ExGUtils
copying ExGUtils\pyexg.py -> build\lib.win-amd64-3.9\ExGUtils
copying ExGUtils\__init__.py -> build\lib.win-amd64-3.9\ExGUtils
running build_ext
building 'ExGUtils.uts' 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 ExGUtils
Running setup.py clean for ExGUtils
Failed to build ExGUtils
Installing collected packages: ExGUtils
Running setup.py install for ExGUtils ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Leo\Documents\Python setup VSCode\PythonWorkSpace\.venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Leo\\AppData\\Local\\Temp\\pip-install-0sbakymg\\exgutils_ed75e0edba84415a97393b42b74dfabb\\setup.py'"'"'; __file__='"'"'C:\\Users\\Leo\\AppData\\Local\\Temp\\pip-install-0sbakymg\\exgutils_ed75e0edba84415a97393b42b74dfabb\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Leo\AppData\Local\Temp\pip-record-bwzox5tu\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Leo\Documents\Python setup VSCode\PythonWorkSpace\.venv\include\site\python3.9\ExGUtils'
Complete output (11 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\ExGUtils
copying ExGUtils\pyexg.py -> build\lib.win-amd64-3.9\ExGUtils
copying ExGUtils\__init__.py -> build\lib.win-amd64-3.9\ExGUtils
running build_ext
building 'ExGUtils.uts' 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: Command errored out with exit status 1: 'C:\Users\Leo\Documents\Python setup VSCode\PythonWorkSpace\.venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Leo\\AppData\\Local\\Temp\\pip-install-0sbakymg\\exgutils_ed75e0edba84415a97393b42b74dfabb\\setup.py'"'"'; __file__='"'"'C:\\Users\\Leo\\AppData\\Local\\Temp\\pip-install-0sbakymg\\exgutils_ed75e0edba84415a97393b42b74dfabb\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Leo\AppData\Local\Temp\pip-record-bwzox5tu\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Leo\Documents\Python setup VSCode\PythonWorkSpace\.venv\include\site\python3.9\ExGUtils' Check the logs for full command output.
WARNING: You are using pip version 21.1.3; however, version 21.3 is available.
You should consider upgrading via the 'C:\Users\Leo\Documents\Python setup VSCode\PythonWorkSpace\.venv\Scripts\python.exe -m pip install --upgrade pip' command.
(.venv) PS C:\Users\Leo\Documents\Python setup VSCode\PythonWorkSpace> python -m pip install ExGUtils
Collecting ExGUtils
Using cached ExGUtils-3.0.tar.gz (377 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Leo\Documents\Python setup VSCode\PythonWorkSpace\.venv\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Leo\\AppData\\Local\\Temp\\pip-install-da5a3nfv\\exgutils_cea064063ecb48eda3e03df6cf8186f9\\setup.py'"'"'; __file__='"'"'C:\\Users\\Leo\\AppData\\Local\\Temp\\pip-install-da5a3nfv\\exgutils_cea064063ecb48eda3e03df6cf8186f9\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Leo\AppData\Local\Temp\pip-pip-egg-info-w1hiuf8f'
cwd: C:\Users\Leo\AppData\Local\Temp\pip-install-da5a3nfv\exgutils_cea064063ecb48eda3e03df6cf8186f9\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Leo\AppData\Local\Temp\pip-install-da5a3nfv\exgutils_cea064063ecb48eda3e03df6cf8186f9\setup.py", line 29, in <module>
bla = raw_input("Compile C [Y/n]? ")
NameError: name 'raw_input' is not defined
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/af/e7/006322dd2e5d3644ac14b1e49c6c77bf1836598eacfb36ef2a96c85b85b3/ExGUtils-3.0.tar.gz#sha256=413cd9f84a8bbff9c1cee1388775a5cd9c7545e6bfb28502d988cf6b2de0515e (from https://pypi.org/simple/exgutils/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached ExGUtils-2.0.tar.gz (873 kB)
Building wheels for collected packages: ExGUtils
Building wheel for ExGUtils (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Leo\Documents\Python setup VSCode\PythonWorkSpace\.venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Leo\\AppData\\Local\\Temp\\pip-install-da5a3nfv\\exgutils_15bec1f8cd874388bebb08e44962e7dc\\setup.py'"'"'; __file__='"'"'C:\\Users\\Leo\\AppData\\Local\\Temp\\pip-install-da5a3nfv\\exgutils_15bec1f8cd874388bebb08e44962e7dc\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Leo\AppData\Local\Temp\pip-wheel-7hbbnzp9'
cwd: C:\Users\Leo\AppData\Local\Temp\pip-install-da5a3nfv\exgutils_15bec1f8cd874388bebb08e44962e7dc\
Complete output (11 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\ExGUtils
copying ExGUtils\pyexg.py -> build\lib.win-amd64-3.9\ExGUtils
copying ExGUtils\__init__.py -> build\lib.win-amd64-3.9\ExGUtils
running build_ext
building 'ExGUtils.uts' 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 ExGUtils
Running setup.py clean for ExGUtils
Failed to build ExGUtils
Installing collected packages: ExGUtils
Running setup.py install for ExGUtils ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Leo\Documents\Python setup VSCode\PythonWorkSpace\.venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Leo\\AppData\\Local\\Temp\\pip-install-da5a3nfv\\exgutils_15bec1f8cd874388bebb08e44962e7dc\\setup.py'"'"'; __file__='"'"'C:\\Users\\Leo\\AppData\\Local\\Temp\\pip-install-da5a3nfv\\exgutils_15bec1f8cd874388bebb08e44962e7dc\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Leo\AppData\Local\Temp\pip-record-9piz1prw\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Leo\Documents\Python setup VSCode\PythonWorkSpace\.venv\include\site\python3.9\ExGUtils'
cwd: C:\Users\Leo\AppData\Local\Temp\pip-install-da5a3nfv\exgutils_15bec1f8cd874388bebb08e44962e7dc\
Complete output (11 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\ExGUtils
copying ExGUtils\pyexg.py -> build\lib.win-amd64-3.9\ExGUtils
copying ExGUtils\__init__.py -> build\lib.win-amd64-3.9\ExGUtils
running build_ext
building 'ExGUtils.uts' 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: Command errored out with exit status 1: 'C:\Users\Leo\Documents\Python setup VSCode\PythonWorkSpace\.venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Leo\\AppData\\Local\\Temp\\pip-install-da5a3nfv\\exgutils_15bec1f8cd874388bebb08e44962e7dc\\setup.py'"'"'; __file__='"'"'C:\\Users\\Leo\\AppData\\Local\\Temp\\pip-install-da5a3nfv\\exgutils_15bec1f8cd874388bebb08e44962e7dc\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Leo\AppData\Local\Temp\pip-record-9piz1prw\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Leo\Documents\Python setup VSCode\PythonWorkSpace\.venv\include\site\python3.9\ExGUtils' Check the logs for full command output.
I know the problem is that I am using python 3 where raw_input is now input, I am not sure how to fix this problem and would like any help I can get. The only solution I can think of is creating a new environment for Python 2, is there any other way to fix this?
As you have already noted, the package seems to have been written with python 2x in mind. Since this library is quite small, you can simply download the source code from pypi, extract it and edit the line in the setup.py:
bla = raw_input("Compile C [Y/n]? ")
to make it python3 compatible. Then run python setup.py install in the source code folder.
Note though that you have an additional error:
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/
In case you want to install the C backend of this library (optional), you will need to make sure that you install that.

We3.py Install Error: Running setup.py install for bitarray ... error ERROR: Command errored out with exit status 1:

I am using python 3.9.7
PS C:\Program Files\Python39> pip install web3
...
This is the part where it's in red error message:
Running setup.py install for bitarray ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\QUI\\AppData\\Local\\Temp\\pip-install-8r0e8eer\\bitarray_3b8d63f53f724d4f910c7c1d5014a41b\\setup.py'"'"'; __file__='"'"'C:\\Users\\QUI\\AppData\\Local\\Temp\\pip-install-8r0e8eer\\bitarray_3b8d63f53f724d4f910c7c1d5014a41b\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\QUI\AppData\Local\Temp\pip-record-107_ynkk\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\QUI\AppData\Roaming\Python\Python39\Include\bitarray'
cwd: C:\Users\QUI\AppData\Local\Temp\pip-install-8r0e8eer\bitarray_3b8d63f53f724d4f910c7c1d5014a41b\
Complete output (13 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\bitarray
copying bitarray\test_bitarray.py -> build\lib.win-amd64-3.9\bitarray copying bitarray\test_util.py -> build\lib.win-amd64-3.9\bitarray
copying bitarray\util.py -> build\lib.win-amd64-3.9\bitarray
copying bitarray\__init__.py -> build\lib.win-amd64-3.9\bitarray
running build_ext
building 'bitarray._bitarray' 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: Command errored out with exit status 1: 'C:\Program Files\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\QUI\AppData\Local\Temp\pip-install-8r0e8eer\bitarray_3b8d63f53f724d4f910c7c1d5014a41b\setup.py'"'"'; file='"'"'C:\Users\QUI\AppData\Local\Temp\pip-install-8r0e8eer\bitarray_3b8d63f53f724d4f910c7c1d5014a41b\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\QUI\AppData\Local\Temp\pip-record-107_ynkk\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\QUI\AppData\Roaming\Python\Python39\Include\bitarray' Check the logs for full command output.

Categories