I'm having issues installing pygrib using pip. I tried installing pygrib by using easy_install, and I get a similar error.
Using pip I get this error:
Command "C:\Users\Brandon\AppData\Local\Enthought\Canopy\edm\envs\User\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Brandon\\AppData\\Local\\Temp\\pip-build-veulay9n\\pygrib\\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\Brandon\AppData\Local\Temp\pip-ff_s5247-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Brandon\AppData\Local\Temp\pip-build-veulay9n\pygrib\
Using easy_install I get this error:
c:\users\brandon\appdata\local\enthought\canopy\edm\envs\user\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
pygrib.c(242): fatal error C1083: Cannot open include file: 'grib_api.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
In fact, pygrib is the only package that doesn't work when I try pip or easy_install - it works for any package I try to install. What's going on here and how do I fix this issue?
pygrib is a Python wrapper for libgrib-api. To compile pygrib you need to compile libgrib-abi and install the library and the header files. Download sources from https://software.ecmwf.int/wiki/display/GRIB/Releases.
pygrib includes one or more Python extension modules written in C which need to be compiled as part of the installation, and this C code depends upon some library that provides a header file named "grib_api.h". Find and install that C library, and pygrib installation should then work.
Related
I use this command for installing MySQL client:
pip install mysqlclient
And then I see this problem:
running build_ext
building '_mysql' extension
error: Microsoft Visual C++ 10.0 is required. Get it with "Microsoft Windows SDK 7.1": www.microsoft.com/download/details.aspx?id=8279
Cleaning up... Command C:\Python34\python.exe -c "import setuptools,
tokenize;file='C:\Users\Jayed\AppData\Local\Temp\pip_build_Jayed\mysqlclient\setup.py';exec(compile(getattr(tokenize,
'open', open)(file).read().replace('\r\n', '\n'), file,
'exec'))" install --record
C:\Users\Jayed\AppData\Local\Temp\pip-l4c6dhkk-record\install-record.txt
--single-version-externally-managed --compile failed with error code 1 in C:\Users\Jayed\AppData\Local\Temp\pip_build_Jayed\mysqlclient
Storing debug log for failure in C:\Users\Jayed\pip\pip.log
Actually I went down this path. While I suppose you can find all the libraries and components you need to get the client to compile, it is telling you it can't find a compiled copy of the client and is trying to compile it to install it.
Follow the instructions here: https://pypi.org/project/mysqlclient/ (it has notes about windows doing what you are describing) or download the wheel file (from downloads link on the page) and type
pip install mysqlclient.whl
and it will install without demanding C++ in order to use mysql with python.
I'm trying to pip install aubio package to Python on 64-bit windows 10.
The problem seems to be that I can't build the wheel.
I get a dialogue box saying "the program can't start because mspdb140.dll is missing from your computer. Try reinstalling the program to fix this problem."
Not exactly sure which program it is even referring to...
I've downloaded Visual C++ 14.0 and the aubio zip files which I think are what it's telling me I need: I've tried pip installing and have downloaded Visual C++ 14.0 and the aubio zip files which is what I think I need.
Here's the final error code I get:
Command "C:\Users\danci\Anaconda3\python.exe -u -c "import setuptools,
tokenize;__file__='C:\\Users\\danci\\AppData\\Local\\Temp\\pip-build-
d5772nkl\\aubio\\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\danci\AppData\Local\Temp\pip-
z8g1pk58-record\install-record.txt --single-version-externally-managed --
compile" failed with error code 1 in C:\Users\danci\AppData\Local\Temp\pip-
build-d5772nkl\aubio\
Also, about halfway through installation I get this:
File "C:\Users\danci\AppData\Local\Temp\pip-build-
d5772nkl\aubio\python\lib\gen_external.py", line 108, in get_c_declarations
raise Exception("preprocessor output is empty:\n%s" % err_output)
Exception: preprocessor output is empty:
b''
----------------------------------------
Failed building wheel for aubio
thanks.
It seems something is missing to your setup. To compile a python extension on windows, you will need the compiler that was used to build your python binary.
See this page about windows compiler to find out the correct version to use: https://wiki.python.org/moin/WindowsCompilers
I am new to the Wagtail cms and am taking over a friend's project for his site.
I have downloaded his repo and am trying to get it to run locally. I have followed the steps on the wagtail documentation http://docs.wagtail.io/en/v1.12.1/getting_started/index.html
but in the site's requirements.txt file, there are some dependencies that just are not installing and giving errors:
here is the output of when trying to install the requirements:
build\lib.win32-2.7\psycopg2\_psycopg.pyd : fatal error LNK1120: 62 unresolved externals
error: command 'C:\\Users\\Adam\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\link.exe' failed with exit status 1120
Rolling back uninstall of psycopg2
Command "c:\python27\python.exe -u -c "import setuptools,
tokenize;__file__='c:\\users\\Adam\\appdata\\local\\temp\\pip-build-
bykm5e\\psycopg2\\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\Adam\appdata\local\temp\pip-
cidizd-record\install-record.txt --single-version-externally-managed --
compile" failed with error code 1 in c:\users\Adam\appdata\local\temp\pip-
build-bykm5e\psycopg2\
(The full output is here: https://pastebin.com/m1ukkei8)
Any help would be greatly appreciated - I am using Python 2.7 and have tried reinstalling psycopg and have installed postresql
Your windows linker is throwing out errors as you don't have c++ libraries for an extension to be built properly.
I would suggest to you to rather install it through wheel file
by running
pip install some-package.whl
I'm not sure if this is the answer, but the version of psycopg2 that you're using had a bug that prevented installation using pip, due to some bug in pip. Try version 2.5.3 and see if that fixes it.
I've been trying to install pycapnp via pip on my macbook pro. But I seem to be having issues trying to download it.
The following is the error:
warning: "Your compiler supports C++11 but your C++ standard library does not.
If your " "system has libc++ installed (as should be the case
on e.g. Mac OSX), try adding " "-stdlib=libc++ to your CXXFLAGS."
[-W#warnings]
#warning "Your compiler supports C++11 but your C++ standard library does not.
If your "\
^
/private/var/folders/yv/f6fy_dm51799h6htr1nd30480000gn/T/pip-build-doQpew/
pycapnp/build/include/kj/common.h:78:10: fatal error: 'initializer_list' file
not found
#include <initializer_list>
^
2 warnings and 1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/
private/var/folders/yv/f6fy_dm51799h6htr1nd30480000gn/T/pip-build-doQpew/pycapnp/
setup.py';f=getattr(tokenize, 'open', open)(__file__);code=
f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))"
install --record /var/folders/yv/f6fy_dm51799h6htr1nd30480000gn/T/
pip-hawqg0-record/install-record.txt --single-version-externally-managed --compile"
failed with error code 1 in /private/var/folders/yv/f6fy_dm51799h6htr1nd30480000gn/
T/pip-build-doQpew/pycapnp/
Any help would greatly be appreciated. Thank you!
Try to installed it by declaring
➜ export MACOSX_DEPLOYMENT_TARGET=10.10
Or
➜ CFLAGS='-stdlib=libc++' pip install pycapnp
Or
➜ export CXXFLAGS="-stdlib=libc++"
➜ export CFLAGS="-stdlib=libc++"
You can see more details from this issue
By the way, I installed it successfully in virtualenv on my Macbook.
I am using python 3.3.0 .. Within this package C:\Python34\Scripts is my pip and I have added this path to my system and user environment variable PATH the link to this pip folder,I have installed Visual C++ 2010 but i don't know what needs to be done once it is installed if or not i need to configure something, yet when I do :
C:\Python33\Scripts>pip install https://pyodbc.googlecode.com/files/pyodbc-3.0.7.zip
It gives me the following error:
This is what stackoverflow editor has changed it to :
Fatal error in launcher: Unable to create process using
'"C:\Python33\python.exe " "C:\Python33\Scripts\pip.exe" install
https://pyodbc.googlecode.com/files/pyo dbc-3.0.7.zip'
C:\Python33\Scripts>pip
Fatal error in launcher: Unable to create process using
'"C:\Python33\python.exe " "C:\Python33\Scripts\pip.exe" '
And this is the actual error that i see at console:
ValueError: ['path']
----------------------------------------
Command "C:\Python33\python.EXE -c "import setuptools, tokenize;__file__='c
\users\elyon\appdata\local\temp\pip-inh3nq-build\setup.py';exec(compi
e(getattr(tokenize, 'open', open)(file).read().replace('\r\n',
'\n'), __fil
__, 'exec'))" install --record c:\users\elyon\appdata\local\temp\pip-x45j1j-
ecord\install-record.txt --single-version-externally-managed
--compile" failed ith error code 1 in c:\users\elyon\appdata\local\temp\pip-inh3nq-build
Since you're on Windows with Python 3.3, the easiest way to install pyodbc is to use the provided installers.
You should then be able to manage future upgrades using pip if you so desire.
C:\Python33\Scripts> .\pip.exe install --upgrade --allow-external pyodbc --allow-unverified pyodbc pyodbc
Requirement already up-to-date: pyodbc in c:\python33\lib\site-packages