Fedora 26系统Python3.6环境安装datatable失败求助
Hey there! This error isn’t normal—let’s break down why it’s happening and get datatable installed properly.
Why this error pops up
The wheel file you’re targeting is built for linux_x86_64, but older pip versions or Fedora’s specific system labeling can make pip misjudge compatibility. Also, datatable depends on some system-level libraries that might be missing from your Fedora 26 setup.
Step-by-step solutions
1. Upgrade pip first
Older pip versions often struggle to recognize valid wheel files. Update pip with this command:
pip install --upgrade pip
After upgrading, try re-running your original wheel installation command to see if it works.
2. Install required system dependencies
Datatable needs several system libraries to run or compile correctly. Install them using Fedora’s package manager:
sudo dnf install libcurl-devel openssl-devel gcc-c++ git
3. Install datatable from source (most reliable for your setup)
If the wheel still fails, compiling from source bypasses the platform compatibility check. Here’s how:
- Clone the datatable repository:
git clone https://github.com/h2oai/datatable.git - Navigate into the repo directory:
cd datatable - Check out the exact 0.3.2 version you need:
git checkout 0.3.2 - Install from the source code:
pip install .
Quick tip
If you’re using a virtual environment (highly recommended for Python projects), activate it before running any of these commands to avoid messing with your system-wide Python installation.
内容的提问来源于stack exchange,提问作者statquant

