Sphinx-quickstart不起作用 [英] Sphinx-quickstart doesn't work
问题描述
我正在尝试在远程计算机上安装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:
在部分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屋!