Following rasterio installation guidelines (rasterio.readthedocs.io) I downloaded the relevant wheel files from Cristoph's list (link) and installed them successfully on my Windows 10 system. Yet I am failing to install them in my virtualenv I created using Pycharm. For sanity check, I tested I was able to install numpy with pip in the virtualenv.
$ pip install -U pip
$ pip install GDAL-1.11.2-cp27-none-win32.whl
$ pip install rasterio-0.24.0-cp27-none-win32.whl
Unfrutently the red error message is not very informative. I have checked the bases I know such as, the system, and python are 64, pip is linked to python 3.8. This is all I can think of. Below you can see a few of my steps.
Update: It seems that setting up the virtual environment manual from the Command Prompt and not Pycharm paved the way to a successful GDFAL and Rasteiro installation.
- Download virtualenv: C:\Users\t>pip install --user virtualenv
- Create virtualenv: C:\Users\t\Downloads>python -m venv
- Activate: C:\Users\t\Downloads>test_virtual_env_i\env\Scripts\activate
Then installing the respective downloaded GDAL wheel worked out of the box:
- (env) C:\Users\t\Downloads>pip install GDAL-3.0.2-cp38-cp38- win_amd64.whl
- (env) C:\Users\esaiet\Downloads>pip install rasterio-1.1.1-cp38-cp38-win_amd64.whl
Before I can conclude the issue is resolved, the qyestion is what is the difference between the my virtualenv installation and Pycharm.
python -m pip install --upgrade pip
and then install gdal.whl again byGDAL-1.11.2-cp27-none-win32.whl
. Make sure that python directory are defined in OS path.