Skip to content
Advertisement

problem of installing xfoil python package

I got a problem of installing xfoil python package Collecting xfoil Using cached xfoil-1.1.1.tar.gz (12 kB) Preparing metadata (setup.py) … done Requirement already satisfied: numpy in c:usersxxxdesktopcurvevenvlibsite-packages (from xfoil) (1.22.4) Building wheels for collected packages: xfoil Building wheel for xfoil (setup.py) … error error: subprocess-exited-with-error

JavaScript

How can I deal with it? Thank you very much

Advertisement

Answer

The problem appears to be that the build process is failing, as pip is trying to compile the source code, but it’s failing because the prerequisites for this process aren’t present.

To make this work, you could install the package using pre-compiled (built) packages. The package has only published built packages for Python 3.7 https://pypi.org/project/xfoil/#files

To use this, create a Python virtual environment that uses Python version 3.7.

I got this working using the Anaconda Python distribution as follows.

First, create a virtual environment using Python version 3.7

JavaScript

Because this environment is using Python version 3.7, the built xfoil distribution will be downloaded (the wheel file .whl). The console output is shown below:

JavaScript

If you want to build xfoil using a more recent Python version (you’re using version 3.10) then follow the build instructions on the xfoil page https://pypi.org/project/xfoil/ under “Building and Installing the Python Module”

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement