PIP install failing on Windows 10
- Dominant language
- Jsonnet
- Stars
- 7.6k
- Forks
- 475
- PR merge metrics
- No merged PRs in 30d
Description
I am having trouble installing the jsonnet python package. In particular the build step is failing. Here is my output from pip
```
C:\Python27\Scripts>pip install jsonnet
Collecting jsonnet
Using cached jsonnet-0.10.0.tar.gz
Installing collected packages: jsonnet
Running setup.py install for jsonnet ... error
Complete output from command C:\Python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\me\\appdata\\local\\temp\\pip-build-i148_p\\jsonnet\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\me\appdata\local\temp\pip-4njvtc-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
error: [Error 2] The system cannot find the file specified
----------------------------------------
Command "C:\Python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\me\\appdata\\local\\temp\\pip-build-i148_p\\jsonnet\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\me\appdata\local\temp\pip-4njvtc-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\me\appdata\local\temp\pip-build-i148_p\jsonnet\
```
I have run the pip install command in the Visual Studio 2017 and Visual Studio 2015 command prompt with python tools installed and received the same error. I also tried installing MinGW, added its bin folder to my path, and specified in the distutils.cfg to use the mingw32 compiler (as seen below) with no success.
_Distutils.cfg_
```
[build]
compiler = mingw32
[build_ext]
compiler = mingw32
```
I also tried downloading the tar directly from here and running the build command below and received the same error.
```
C:\Python27\python.exe setup.py build
running build
running build_ext
error: [Error 2] The system cannot find the file specified
```
I'm not sure what else to try. Are there wheels available for windows?
Thanks,
Bert
Contributor guide
Assessment
This issue has not been assessed yet.