Last Update: 7/13/2025
When you install Python packages (no matter by Python Package menu or in Script Window), you may encounter error like following ones:
ERROR: Could not install packages due to an EnvironmentError:
pip/_vendor/pep517/_in_process.py
or
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
This problem probably happens on those packages which only have .tar.gz provided. If so, you can try solution 1 to workaround it.
pip wheel "FullFilePath.tar.gz" -w "FullTargetFileFolder"
to generate *.whl file.
For example, if you have downloaded package laserbeamsize-1.7.1.tar.gz to folder C:\Users\myusername\Downloads\, you can run the following command to generate the .whl file to C:\tmp folder:
pip wheel "C:\Users\myusername\Downloads\laserbeamsize-1.7.1.tar.gz" -w "C:\tmp"
pip install "FullFilePath.whl"
If those packages which only have .tar.gz are written in C(or C++), above solution may probably not work. Please try solution 2 below.
You will need to either install a Windows complier like Visual Studio to build the file, or download it from some public websites.
Let's take package xclim and Bottleneck for example.
xclim depends on Bottleneck, while Bottleneck provides *.tar.gz file only.
pip install "C:\tmp\Bottleneck-1.3.2-cp38-cp38-win_amd64.whl" xclim
Note: If you cannot find the package from public websites, you may contact us for help,
or install Visual Studio, and then try the solution 1 steps, which will become successfully building the *.whl files.
Keywords:python, pypi, pip, tar.gz, whl, install fail, package, pep517, EnvironmentError, subprocess