no such option: --no-install

断了今生、忘了曾经 提交于 2019-12-05 12:59:23

The --no-install option has been removed in pip version 7.

The new option appears to be called --download, which takes a directory as argument:

sudo pip install --download /tmp/GDAL GDAL

For the --no-download option given a few lines later in the installation guide linked in your question, you'll have to try and do the following as alternative, since that is also deprecated:

pip install /tmp/GDAL

or similar, according to this pip issue.


As of pip 8.0.0, --download has been deprecated. Instead, use
sudo pip download GDAL

(see the release notes).


Since this seems to be an issue about grabbing the include dirs, have you tried using setting CFLAGS and CXXFLAGS instead? E.g.

export CFLAGS=/usr/include/gdal 
export CXXFLAGS=/usr/include/gdal 
sudo pip install GDAL

Not sure why the linked installation guide uses C_INCLUDE_PATH instead.

Also, this seems to be the usual kludginess you can run into, which is either because the OS decides to places package header files into a separate subdirectory, or because GDAL source code is not properly written to #include <gdal/gdal.h> etc. You may run into that more often, if you install more software.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!