Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.33 KB

TROUBLESHOOTING-en-US.md

File metadata and controls

41 lines (28 loc) · 1.33 KB

English (US) | Português (BR)

Troubleshooting

Python.h missing

While running pip install command, you can get an error like this one below:

module.c:1:10: fatal error: Python.h: No such file or directory
     #include <Python.h>
              ^~~~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Please try to install python3-dev. E.g. via apt install python3-dev, if you are using a Debian-like distro, or use your distro manager package. Make sure that you use the correct version (e.g. python3.6-dev or python3.7-dev). You can check your version via python3 --version.

Error pinned with ==

While running pip install requeriments, a inexact pinning error may appear. Therefore, use "--no-deps" along the installation:

pip install -r data_collection/requirements-dev.txt --no-deps

Error legacy-install

In your WSL terminal, a legacy-install failure, like this one below, may occur while installing packages.

error: legacy-install failure
error: command 'x86_64-linux-gnu-gcc' failed: No such file or directory

Thus, upgrade your pio and install some essential libraries for Linux:

python3 -m pip install --upgrade pip
sudo apt-get install build-essential libssl-dev libffi-dev python3-dev