Visual Studio Fatal Error C1510: The language resource clui.dll cannot be loaded. When installing pandas

I am trying to install install pandas and I keep getting this error:

      fatal error C1510: Cannot load language resource clui.dll.
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 
      14.0\\VC\\BIN\\amd64\\cl.exe' failed with exit status 4

      

I'm tired of uninstalling and repairing, but it still tells me this error. Is there a way to fix this?

+4


source to share


2 answers


I have a feeling that you should be using an older version of PIP.

It may sound simple, but try this code.



python -m pip install --upgrade pip

      

+3


source


If launching is pip install --upgrade pip

not a pip install --upgrade pip

problem (as in my case).

Your first step is to check if Visual Studio or the offline build libraries ( https://visualstudio.microsoft.com/visual-cpp-build-tools/ ) are installed to get the build libraries.

In my case it was a cloud machine where I could not install these libraries -_-

so just installing from a helm file from somewhere like https://www.lfd.uci.edu/~gohlke/pythonlibs/ got around the .dll issue

python -m pip install your-downloaded-file-goes-here.whl

      

if you can't find the wheel file here, you can build the whl file yourself from source on the machine where you can install the build libraries

git clone https://github.com/pandas-dev/pandas.git

      

Change directory using setup.py

cd pandas

      



make sure the Python you are using to build is the same Python version as the machine you are installing on

python setup.py bd_dist

      

then you will find a file .whl

in /dist

which I copied to the remote machine

if above doesn't work, you might need to install build tools if you haven't already

python -m pip install --upgrade setuptools wheel

      

Considering your case, you may need to install these additional packages to compile pandas from source.

python -m pip install cython numpy

      

see https://packaging.python.org/tutorials/packaging-projects/#generating-distribution-archives.

0


source







All Articles