Install Gdal on Python 2.7 on a Amazon Linux Virtual Server

How to install gdal in virtuallenv?

When you install python3-gdal you are actually installing it in your operating system's python, that means virtual enviroments can't see the library.

You need to pip install gdal inside your enviroment so you can use it.

If you have problems installing it you can try making a conda enviroment instead, and install all of your requirements through conda install.

fatal error: Python.h: No such file or directory

I managed to solve this issue and generate the .so file in one command

gcc -shared -o UtilcS.so
-fPIC -I/usr/include/python2.7 -lpython2.7 utilsmodule.c

C++, Ifstream opens local file but not file on HTTP Server

There are no utilities in the standard C++ library for accessing data via http protocol.

There are 3rd-party libraries though:
Libwww
libcurl

Another option is to have a virtual filesystem that maps remote http files as local files. This way you don't have to modify your application to access http. Something like http://okmij.org/ftp/HTTP-VFS.html

Error filename.whl is not a supported wheel on this platform

cp33 means CPython 3.3.

You need scipy‑0.15.1‑cp27‑none‑win_amd64.whl instead.



Related Topics



Leave a reply



Submit