按照learnpythonthehardway教程试图安装nosetests,我遇到了问题。任何我应该尝试下一步的线索?如果我有保存在一个随机位置在我的电脑上的东西,可以把它导入到python脚本,无论它在哪里:安装nosetests - 权限被拒绝
$ easy_install nose
Searching for nose
Best match: nose 1.1.2
Processing nose-1.1.2-py2.6.egg
nose 1.1.2 is already the active version in easy-install.pth
Installing nosetests-2.6 script to /usr/local/bin
error: /usr/local/bin/nosetests-2.6: Permission denied`
一个关于安装,我的问题吗?因此,如果我执行名为“projects”的文件夹中的runthis.py,并且我有from setup tools import setup
作为该程序的第一行,那么setup tools
必须在python的特定位置(如“projects”文件夹)才能找到它?
这里就是我得到的打字时,在:'$ sudo的 用法:须藤[-n] -h | -K | -k | -L | -V | -v 用法:须藤-l [1] [-AnS] [-g组名| #GID] [-U用户名] [-u用户名| #uid] [-g组名| #GID] [命令] 用法:sudo [-AbEHnPS] [-C fd] [-g groupname | #gid] [-p提示] [-u username | #uid] [-g groupname | #gid] [VAR = value] [-i | -s] [] 用法:sudo -e [-AnS] [-C fd] [ - g groupname | #gid] [-p提示] [-u username | #uid]文件...' 我不太确定'sys.path'是什么;我之前没有听说过PYTHONPATH(对不起,我对此很陌生)。尽管感谢您的帮助! –
ZCJ
2012-02-14 03:50:18
@ZCJ:编辑我的答案。 – geoffspear 2012-02-14 03:55:25
哇,谢谢你的建议 - “nosetests”现在正在工作。 – ZCJ 2012-02-14 04:16:17