Sphinx-quickstart不起作用 [英] Sphinx-quickstart doesn't work

查看:318
本文介绍了Sphinx-quickstart不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在远程计算机上安装sphinx.

I am trying to install sphinx on a remote machine.

由于我无权访问根目录,因此我这样做了:

Since I don't have an access to the root, I did this:

$bash

$mkdir -p ~/local/lib/python2.7/site-packages

$export PYTHONPATH=$PYTHONPATH:~/local/lib/python2.7/site-packages

$export PATH=$PATH::~/local/lib/python2.7/site-packages

$easy_install -U --prefix=$HOME/local Sphinx

但是很明显,$easy_install并没有构建sphinx-quickstart.当我输入

But apparently, $easy_install doesn't build sphinx-quickstart; when I type

$sphinx-quickstart

我收到以下消息:

bash: sphinx-quickstart: command not found

我尝试了

find $HOME -name sphinx-quickstart 

,未找到结果.但是,我可以在python中导入sphinx:

and no result was found. However, I can import sphinx inside python:

$python

然后

>>import sphinx 

有效.知道为什么sphinx-quickstart无法正常工作吗?

works. Any idea why sphinx-quickstart doesn't work?

推荐答案

我在此网页中找到了解决方案:

I found the solution in this webpage:

用户(无root/sudo权限)安装Python模块.

User (root/sudo free) installation of Python modules.

部分3.他提到Python 2.6 +

~/local/bin

尽管我已将~/local/lib/python2.7/siste-packages放在路径中,但~/local/bin目录不在该路径中.所以我做了

Although I had put ~/local/lib/python2.7/siste-packages in the path, the ~/local/bin directory was not in the path. So all I did

$export PYTHONPATH=$PYTHONPATH:~/local/bin

现在可以使用了.

我不知道为什么find $HOME -name sphinx-quickstart找不到sphinx-quickstart

I don't know why find $HOME -name sphinx-quickstart did not find sphinx-quickstart

这篇关于Sphinx-quickstart不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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