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?
Related
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.
I installed a-Shell on my iPad(8th gen), it came with very nice python packages and it allowed me to run Jupyter notebook smoothly. But a lot of packages are outdated and my problem is with numpy.
When I use:
pip3 install numpy --upgarde
or
pip3 install numpy --upgarde --ignore-installed
It gives me the following:
OSError: [Errno 9] Bad file descriptor
note: This error originates from a subprocess, and is likely not a problem with pip.
Does file access permissions has to do anything with this problem?
One solution I found is to remove and re-install python, but I don't want to do that.
Thanks.
I want to update numpy from 1.19.1 to 1.19.2. So I did the following command:
pip install --upgrade numpy
However, I received the following error message:
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/userdata/data-dlin/.conda/envs/mybase/lib/python3.7/site-packages/numpy-1.19.1.dist-info/RECORD'
I went to the directory and found the RECORD file was indeed missing. How do I fix the error?
Uninstalling numpy (pip uninstall numpy), then deleting the entire folder
(python environment)/lib/site-packages/numpy-1.19.X.dist-info
And reinstalling numpy (pip install numpy) fixed it for me.
Aix ---> 7.1.0.0 (64 Bit)
Python --> 3.6.6
Not able to install module pandas-0.24.2 ,
It is failing while trying to import numpy with the below error message,
ImportError: 0509-022 Cannot load module $PYTHON_HOME/lib64/python3.6/site-packages/numpy-1.16.2-py3.6-aix-7.1.egg/numpy/core/_multiarray_umath.so.
Have tried compiling the numpy module from the package source, still it didn't work....
https://stackoverflow.com/questions/31704639/compiling-numpy-for-python3-for-aix-works-but-import-fails#32736358
https://github.com/numpy/numpy/issues/12396
https://github.com/numpy/numpy/issues/11317
https://github.com/numpy/numpy/issues/4723
ImportError: 0509-022 Cannot load module $PYTHON_HOME/lib64/python3.6/site-packages/numpy-1.16.2-py3.6-aix-7.1.egg/numpy/core/_multiarray_umath.so.
0509-026 System error: Cannot run a file that does not have a valid format
try :
pip uninstall -y numpy
pip uninstall -y setuptools
pip install setuptools
pip install numpy
I'm trying to install pandas. When I run: pip install pandas in cmd, I get the following error message: Could not find a version that satisfies the requirement numpy==1.9.3. Not sure how to fix this.
It's likely you have a different version of numpy installed, try upgrade numpy first with:
pip install numpy==1.9.3 --upgrade
then run pip install pandas. Also check this github issue. Maybe your python version is not supported.