pip install pythonnet fails on Win7 32 bit
See original GitHub issueQuestion before getting into the details: Does Python.Net 3.0 support 32 bit Windows OS? If so, please see details below.
Environment
- Pythonnet version: Using command today (25 Nov):
pip install git+https://github.com/pythonnet/pythonnet
- Python version: 3.8.10 (last version to support Win 7)
- Python packages already installed:
C:\windows\system32>py -m pip list
Package Version
------------- -------
pip 21.3.1
setuptools 56.0.0
wheel 0.37.0
- Operating System: Win7 32 bit
- .NET Runtime: 5.0.11 32 bit
Details
- Describe what you were trying to get done.
Trying to install Python.Net
- Output:
C:\windows\system32>pip install git+https://github.com/pythonnet/pythonnet
Collecting git+https://github.com/pythonnet/pythonnet
Cloning https://github.com/pythonnet/pythonnet to c:\users\vincluff\appdata\lo
cal\temp\pip-req-build-rfj3jqz9
Running command git clone --filter=blob:none -q https://github.com/pythonnet/p
ythonnet 'C:\Users\vincluff\AppData\Local\Temp\pip-req-build-rfj3jqz9'
Resolved https://github.com/pythonnet/pythonnet to commit ac336a893de14aaf2c7b
795568203b48030f9006
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting clr-loader
Using cached clr_loader-0.1.6-py3-none-any.whl (45 kB)
Collecting cffi>=1.13
Using cached cffi-1.15.0-cp38-cp38-win32.whl (167 kB)
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Building wheels for collected packages: pythonnet
Building wheel for pythonnet (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\program files\python38-32\python.exe' 'c:\program files\python38
-32\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel
'C:\Users\vincluff\AppData\Local\Temp\tmpizpuo18y'
cwd: C:\Users\vincluff\AppData\Local\Temp\pip-req-build-rfj3jqz9
Complete output (23 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib
copying clr.py -> build\lib
creating build\lib\pythonnet
copying pythonnet\__init__.py -> build\lib\pythonnet
creating build\lib\pythonnet\find_libpython
copying pythonnet\find_libpython\__init__.py -> build\lib\pythonnet\find_libpy
thon
copying pythonnet\find_libpython\__main__.py -> build\lib\pythonnet\find_libpy
thon
running build_dotnet
Running dotnet build...
C:\Program Files\dotnet\dotnet.exe build src/runtime/Python.Runtime.csproj --c
onfiguration release --output C:\Users\vincluff\AppData\Local\Temp\pip-req-build
-rfj3jqz9\build\lib\pythonnet/runtime
Could not execute because the application was not found or a compatible .NET S
DK is not installed.
Possible reasons for this include:
* You intended to execute a .NET program:
The application 'build' does not exist.
* You intended to execute a .NET SDK command:
It was not possible to find any installed .NET SDKs.
Install a .NET SDK from:
https://aka.ms/dotnet-download
error: command 'C:\\Program Files\\dotnet\\dotnet.exe' failed with exit status
-2147450735
----------------------------------------
ERROR: Failed building wheel for pythonnet
Failed to build pythonnet
ERROR: Could not build wheels for pythonnet, which is required to install pyproj
ect.toml-based projects
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to fix error during pythonnet installation
whl (for 64-bit python version). Then specify a full path to wheel file for installation. Example: pip install C:\Users\User\Downloads\pythonnet ...
Read more >PIP Install Pythonnet - A quick read
PIP Install Pythonnet – A quick read ... Try a faster and easier way to work with Python packages and libraries, and building...
Read more >pythonnet
Python.NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful ...
Read more >Python 3.9 pip install fails · Issue #1480 · pythonnet ...
Environment Pythonnet version: 2.5.2 Python version: 3.9.6 Operating System: Windows 10 64 bit .NET Runtime: 4.8.04084 Details Describe what ...
Read more >How to Download and Install Python 3.8.6 on Windows 7
How to Download and Install Python 3.8.6 on Windows 7 ( 32 /64bit) Correctly. Explaining the Python Setup Failed Error and the easy...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @filmor. It’s a fresh install of .NET 5.0.11:
@DareDevilDenis Regarding the initial problems building from git, this is fixed now on master after people found the problem in #1613.