numpy-python (error failed to build wheels for numpy.) - numpy

I tried to make a program for face_recoginition and I face an import error
error: NumPy.core.multiarray failed to import.
to resolve (after google) I tried to reinstall NumPy using the command pip install numpy. I am getting an error failed to build wheels for numpy.
And I am not able to resolve it.

Related

Can't install lxml on pip

I can't install lxml on pip or pip3
I tried run the code on python3.11
import pandas as pd
data = pd.read_html("https://zh.wikipedia.org/zh-hans/%E6%81%92%E7%94%9F%E6%8C%87%E6%95%B8")
It occurred a Import Error.
"ImportError: lxml not found, please install it"
So I tried to install the lxml. "pip install lxml"
However, it cannot be install.
** 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.
╰─> lxml
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.**
And then, I had download the lxml-4.9.9-pp38-....whl
and entered "pip install c:/......." and it said whl is not a supported wheel on this platform.
Could someone do me a favor?

Difficulty installing dbt snowflakes using pip

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyarrow
Failed to build pyarrow
ERROR: Could not build wheels for pyarrow, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
I tried installing dbt-snowflake but having this error. Can anyone help please?
As the documentation states, dbt compatibility is up to python version 10. If you recently downloaded version 11 of python, it may cause unexpected behavior or errors. You need to install version 10 of python and attempt to reinstall dbt in a virtual environment using version 10.
Reference dbt docs here https://docs.getdbt.com/faqs/core/install-python-compatibility.

Numpy installation error while installing taiyaki with pip

I've been trying to install taiyaki with pip. I keep getting this error:
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.
╰─> numpy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
It seems to have some trouble with numpy installation, so I tried installing numpy with pip and removing it from the required dependencies in the setup.py file and it still does not work. I also tried running pip with '--no-cache-dir' option and '--no-deps' option but I get the same error.

Unable to install Pandas, I get multiple errors

I get errors when I try to install pandas in Windows 10, several errors the last one is in red:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\User1\AppData\Local\Temp\pip-build-07bztlx0\pandas\
try with:
In python executable file-
import pip
pip.main(["install","pandas"])

cblas ImportError after installing sklearn using dokku

I'm currently using this Heroku buildpack to install numpy and scipy. Then, I am able to just pip install sklearn from my requirements.txt file during the push deployment.
It appears to install fine, but I run into various errors in files due to imports.
They all ultimately yield an ImportError of:
undefined symbol: cblas_dscal
or
undefined symbol: cblas_dasum
Does anyone have any insight on how to resolve this?