how to install channels_redis module in django without errors - python

am trying to install channels_redis in Django using pip but so far am getting this error:
Building wheel for hiredis (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
C:\Users\Teacher-5F84DF\AppData\Local\Temp\pip-install-a7pi2nhv\hiredis_6b689b761b5b44cc87e6dbe9cbaa0597\setup.py:7: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
import sys, imp, os, glob, io
c:\users\teacher-5f84df\appdata\local\programs\python\python310\lib\site-packages\setuptools\dist.py:697: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\hiredis
copying hiredis\version.py -> build\lib.win-amd64-3.10\hiredis
copying hiredis\__init__.py -> build\lib.win-amd64-3.10\hiredis
copying hiredis\hiredis.pyi -> build\lib.win-amd64-3.10\hiredis
copying hiredis\py.typed -> build\lib.win-amd64-3.10\hiredis
running build_ext
building 'hiredis.hiredis' 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/
[end of output]
I tried installing pip install python-dev-tools but dint work.Please help am stuck.

You need to dowload Microsoft C++ build tool.

Related

How solving Problem installing the noise package

I tried to install noise Python package, but I encountered this error
`
PS C:\Users\MacBook\Desktop\python-superhi> python -m pip install noise
Collecting noise
Using cached noise-1.2.2.zip (132 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: noise
Building wheel for noise (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\noise
copying perlin.py -> build\lib.win-amd64-cpython-310\noise
copying shader.py -> build\lib.win-amd64-cpython-310\noise
copying shader_noise.py -> build\lib.win-amd64-cpython-310\noise
copying test.py -> build\lib.win-amd64-cpython-310\noise
copying init.py -> build\lib.win-amd64-cpython-310\noise
running build_ext
building 'noise._simplex' 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/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for noise
Running setup.py clean for noise
Failed to build noise
Installing collected packages: noise
Running setup.py install for noise ... error
error: subprocess-exited-with-error
× Running setup.py install for noise did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
running install
C:\Users\MacBook\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\noise
copying perlin.py -> build\lib.win-amd64-cpython-310\noise
copying shader.py -> build\lib.win-amd64-cpython-310\noise
copying shader_noise.py -> build\lib.win-amd64-cpython-310\noise
copying test.py -> build\lib.win-amd64-cpython-310\noise
copying init.py -> build\lib.win-amd64-cpython-310\noise
running build_ext
building 'noise._simplex' 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/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> noise
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
`
please help me to solve this
It is always better to use PyCharm IDE for python projects because it is easy to download modules and to setup environment.
you can download this IDE here: download

Not able to install OCRPaddle for WIndows

I'm trying to install the PaddleOCR package following the Quick Start Guide. When I run this command to install PaddleOCR Whl Package:
pip install "paddleocr>=2.0.1" # Recommend to use version 2.0.1+
I'm getting this error when building the Poligon3 wheel:
Building wheel for Polygon3 (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
Using NumPy extension!
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-37
creating build\lib.win-amd64-cpython-37\Polygon
copying Polygon\IO.py -> build\lib.win-amd64-cpython-37\Polygon
copying Polygon\Shapes.py -> build\lib.win-amd64-cpython-37\Polygon
copying Polygon\Utils.py -> build\lib.win-amd64-cpython-37\Polygon
copying Polygon\__init__.py -> build\lib.win-amd64-cpython-37\Polygon
running build_ext
building 'Polygon.cPolygon' 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/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for Polygon3
Running setup.py clean for Polygon3
Failed to build Polygon3
Installing collected packages: Polygon3, lmdb, zipp, typing-extensions, tifffile, shapely, scipy, rapidfuzz, PyWavelets, python-dateutil, pyparsing, pycryptodome, opencv-python, opencv-contrib-python, networkx, MarkupSafe, lxml, itsdangerous, imageio, future, fonttools, et-xmlfile, dill, cython, cycler, cssselect, colorama, cachetools, Babel, attrdict, Werkzeug, tqdm, pandas, packaging, openpyxl, multiprocess, kiwisolver, Jinja2, importlib-metadata, bce-python-sdk, scikit-image, matplotlib, cssutils, click, premailer, imgaug, flask, Flask-Babel, visualdl, paddleocr
Running setup.py install for Polygon3 ... error
error: subprocess-exited-with-error
× Running setup.py install for Polygon3 did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
Using NumPy extension!
running install
C:\Users\jd\miniconda3\envs\ocrpaddle\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-37
creating build\lib.win-amd64-cpython-37\Polygon
copying Polygon\IO.py -> build\lib.win-amd64-cpython-37\Polygon
copying Polygon\Shapes.py -> build\lib.win-amd64-cpython-37\Polygon
copying Polygon\Utils.py -> build\lib.win-amd64-cpython-37\Polygon
copying Polygon\__init__.py -> build\lib.win-amd64-cpython-37\Polygon
running build_ext
building 'Polygon.cPolygon' 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/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> Polygon3
note: This is an issue with the package mentioned above, not pip.
Has anyone encountered this problem? I'm using a conda environment with Python 3.7.
It is clearly mentioned that you need to install "Microsoft Visual C++ 14.0 or above"
Please install it and you are good to go.

how to resolve 'pyResMan' installation error

I have tried to install 'pyResMan' but found below errors,
C:\Users>pip install pyResMan
Collecting pyResMan
Using cached pyResMan-5.0.2-py2.py3-none-any.whl
Requirement already satisfied: peppercorn in d:\program files\python39\lib\site-packages (from pyResMan) (0.6)
Collecting pyGlobalPlatform
Using cached pyGlobalPlatform-1.4.16.zip (18 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: pyscard in d:\program files\python39\lib\site-packages (from pyResMan) (2.0.3)
Building wheels for collected packages: pyGlobalPlatform
Building wheel for pyGlobalPlatform (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-39
creating build\lib.win-amd64-cpython-39\pyGlobalPlatform
copying pyGlobalPlatform\globalplatformlib.py -> build\lib.win-amd64-cpython-39\pyGlobalPlatform
copying pyGlobalPlatform_init_.py -> build\lib.win-amd64-cpython-39\pyGlobalPlatform
running build_ext
building 'pyGlobalPlatform.pyGlobalPlatform' 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/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyGlobalPlatform
Running setup.py clean for pyGlobalPlatform
Failed to build pyGlobalPlatform
Installing collected packages: pyGlobalPlatform, pyResMan
Running setup.py install for pyGlobalPlatform ... error
error: subprocess-exited-with-error
× Running setup.py install for pyGlobalPlatform did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
running install
D:\Program Files\Python39\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-39
creating build\lib.win-amd64-cpython-39\pyGlobalPlatform
copying pyGlobalPlatform\globalplatformlib.py -> build\lib.win-amd64-cpython-39\pyGlobalPlatform
copying pyGlobalPlatform_init_.py -> build\lib.win-amd64-cpython-39\pyGlobalPlatform
running build_ext
building 'pyGlobalPlatform.pyGlobalPlatform' 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/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> pyGlobalPlatform
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Could anyone please help me to solve this.
The error message tells you- you need Microsoft Visual C++ 14.0 or greater
Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/```

python speech recognition not getting install [duplicate]

This question already has answers here:
I can't install pyaudio on Windows? How to solve "error: Microsoft Visual C++ 14.0 is required."?
(17 answers)
Closed 8 months ago.
I have being tiring to install python speech recognition for a long time but getting the same problem on running
pip install pyaudio
Output:
Collecting pyaudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyaudio
Building wheel for pyaudio (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [9 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
copying src\pyaudio.py -> build\lib.win-amd64-3.10
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/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
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: subprocess-exited-with-error
× Running setup.py install for pyaudio did not run successfully.
│ exit code: 1
╰─> [9 lines of output]
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
copying src\pyaudio.py -> build\lib.win-amd64-3.10
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/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> pyaudio
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
As I understand from:
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/
I had to install 'Microsoft Visual C++ 14.0 or greater' so I did. But same result even after
that!
What am I supposes to do.
You can try this
pip install pipwin
then
pipwin install pyaudio
This is not a problem with just you, everyone faces this.
Here's a fix I hope will work for you:
pip install pipwin
pipwin install pyaudio
to install pyaudio via pipwin, sometimes the command doesn't work so try
pipwin refresh and run pipwin install pyaudio again
If the above steps do not work, try going to Python Packages and install your system-specific version of pyaudio.
then opening a cmd instance in the directory you installed the package and run
pip install package
replace 'package' with the name of the file you downloaded.

How to fix: ERROR: Failed building wheel for fastobo

I am trying to install this library nxontology using the command below:
pip install nxontology
It is giving me the error below:
Building wheel for fastobo (pyproject.toml) ... error
error: subprocess-exited-with-error
Building wheel for fastobo (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
running bdist_wheel
running build
running build_py
package init file 'src\py\__init__.py' not found (or not a regular file)
package init file 'src\py\header\__init__.py' not found (or not a regular file)
package init file 'src\py\instance\__init__.py' not found (or not a regular file)
package init file 'src\py\term\__init__.py' not found (or not a regular file)
package init file 'src\py\typedef\__init__.py' not found (or not a regular file)
running build_ext
running build_rust
creating build
creating build\temp.win-amd64-cpython-310
creating build\temp.win-amd64-cpython-310\Release
creating build\temp.win-amd64-cpython-310\Release\cargo
creating build\temp.win-amd64-cpython-310\Release\rustup
downloading rustup.sh install script
installing Rust compiler to build\temp.win-amd64-cpython-310\Release
error: [WinError 2] The system cannot find the file specified
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fastobo
Failed to build fastobo
ERROR: Could not build wheels for fastobo, which is required to install pyproject.toml-based projects
I saw some answers to similar errors but none of them worked for me.
pip version: pip 22.1.1 from C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10)
Project python interpreter: Python 3.9.
I would really appreciate if you have any idea how to fix this.

Categories