没有这样的选项:--no-install [英] no such option: --no-install

查看:160
本文介绍了没有这样的选项:--no-install的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过遵循 https在ubuntu 12.04中设置cartodb ://github.com/danseely/cartodb-install/blob/master/DEV-INSTALLATION.md 作为安装的一部分,需要安装一些python依赖项.下面是我尝试过的一部分

I am trying to setup cartodb in ubuntu 12.04 by following https://github.com/danseely/cartodb-install/blob/master/DEV-INSTALLATION.md and as a part of the installation, there are some python dependencies to be installed.Below is a part which i tried

export CPLUS_INCLUDE_PATH=/usr/include/gdal
export C_INCLUDE_PATH=/usr/include/gdal
sudo pip install --no-install GDAL

虽然给sudo pip install --no-install GDAL却给出了错误

While giving sudo pip install --no-install GDAL it is giving an error

no such option --no-install.

仅供参考,我安装了python 2.7 dev版本.我不知道怎么了.帮助将不胜感激.

FYI i have python 2.7 dev version installed.I don't know whats wrong. Help would be appreciated.

推荐答案

--no-install选项已新选项似乎称为--download,它将目录作为参数:

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

sudo pip install --download /tmp/GDAL GDAL

对于问题中链接的安装指南后面几行中给出的--no-download选项,您将不得不尝试执行以下操作作为替代方法,因为该方法也已被弃用:

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

或类似,根据此pip问题.


从8.0.0版开始,不推荐使用--download.而是使用


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

sudo pip download GDAL

(请参见发行说明).

由于这似乎是抓住包含目录的问题,您是否尝试过使用CFLAGS和CXXFLAGS设置?例如

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

不确定链接的安装指南为何改用C_INCLUDE_PATH.

Not sure why the linked installation guide uses C_INCLUDE_PATH instead.

此外,这似乎是您经常遇到的混乱情况,这是因为OS决定将程序包头文件放置在单独的子目录中,或者因为GDAL源代码未正确写入#include <gdal/gdal.h>等.如果您安装更多软件,则可能会更频繁地遇到这种情况.

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.

这篇关于没有这样的选项:--no-install的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆