Installation check
- [x] I have read the installation guide.
Platform
Gerät PRN konnte nicht initialisiert werden.
Installation Method
pip install
pandas Version
2.2.3
Python Version
3.11.9
Installation Logs
Hello everyone, I am currently trying to install asreview from Uni Utrecht, but there accurs a problem which seems to be related to pandas installation. As I tried installing pandas the same error occurs. See below: The installation is to be executed right from Windows command line.
I hope I gathered all infromation you need and to help me.
Comment From: jvlevinson
This looks like you might be having issues with C in your vscode environment. I had a similar issue where one of my msys package QT6
to be specific, was causing issues with the install and C. I initially started to upgrade my wheel but saw an error on sb perl so I upgraded only to see that the Msys was initally the issue. I uninstalled msys, rebooted my laptop, deleted my newly created .venv
, created a new one and this solved my issue.
Check a few things:
1. Missing or Misconfigured Build Tools:
The log shows Meson being invoked with the --vsenv
flag, which means it’s expecting a properly configured Visual Studio (MSVC) environment. If you don’t have the required Visual C++ Build Tools or if they’re not correctly set up, the build will fail.
-
Fallback to Source Build:
Normally, pandas provides precompiled wheels. If pip can’t find a wheel for your specific Python version or system architecture, it falls back to building from source. Building from source requires all the proper compilers and dependencies to be installed on your machine. -
Outdated Build Dependencies:
Sometimes an outdated version of pip, setuptools, or wheel can lead to build issues. Ensuring these are up to date can sometimes resolve the problem.
How to fix it:
-
Install/Configure Build Tools:
On Windows, install the latest [Microsoft C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/). Make sure that your environment variables are set correctly so that pip (and Meson) can find the C compiler. -
Update Your Packaging Tools:
Run:bash pip install --upgrade pip setuptools wheel
-
Check for a Pre-built Wheel:
If you’re on a less common platform or using an unusual Python version, consider switching to a supported configuration where binary wheels are available.
By addressing these points, you should be able to resolve the error and successfully install pandas. Hope that helps!
References: https://visualstudio.microsoft.com/visual-cpp-build-tools/
Comment From: rhshadrach
Do you have wheel
installed? If not, I recommend installing it first with pip install wheel
, then installing pandas.
If this doesn't resolve your issue, can you tell us details about your system: namely what kind of architecture you are on.
Comment From: bemali-beep
hey rhshadrach, unfortunately it didn't solve the issue. My System: Windows 10 Enterprise 64bit
Comment From: bemali-beep
Dear jvlevinson,
when I execute the vs_BuildTools.exe I get to a page where I can select multiple "Workloads". It's in german since I am located there. There is nothing really close but there are things about c++. I am unsecure what to select. Below is a screenshot of the top of the page
Comment From: rhshadrach
For some reason pip is installing the sdist (source distribution) rather than the wheel. I would suggesting trying to download the wheel directly and see why pip is not able to use it.
Wheel: https://files.pythonhosted.org/packages/ed/8c/87ddf1fcb55d11f9f847e3c69bb1c6f8e46e2f40ab1a2d2abadb2401b007/pandas-2.2.3-cp311-cp311-win_amd64.whl
Command: pip install pandas-2.2.3-cp311-cp311-win_amd64.whl
Comment From: bemali-beep
This is the return:
C:***>pip install pandas-2.2.3-cp311-cp311-win_amd64.whl Defaulting to user installation because normal site-packages is not writeable ERROR: pandas-2.2.3-cp311-cp311-win_amd64.whl is not a supported wheel on this platform.
Comment From: rhshadrach
Ah, I was hopeful there might be a more informative error message. My guess is that you do not have amd64 in that case, which are the only wheels pandas produces for Windows. So you will have to follow what @jvlevinson was saying and try to compile pandas yourself.
https://pandas.pydata.org/pandas-docs/dev/development/contributing_environment.html
The other option would be to try conda.