在系统上安装Kobo模块和python 2.7.3

时间:2013-09-06 07:15:19

标签: python python-2.7

我在我的系统上安装了python 2.7.3,我正在尝试安装Kobo模块。模块所在的路径为:

C:\Users\nelson.menezes\Desktop\new softwares\kobo-0.3.6

。我打开命令promt并设置上面提到的路径。然后按照规定运行以下命令安装Kobo。

python setup.py install

但它给了我以下错误

File "c:\python27\lib\distutils\util.py", line 204, in convert_path
raise ValueError, "path '%s' cannot be absolute" % pathname
ValueError: path '/usr/bin' cannot be absolute

我知道由于Path问题而产生的错误。但我无法弄清楚如何解决它。如果有人能以任何可能的方式提供帮助,那就太好了。

完整的追溯如下:

running install
running build
running build_py
running install_lib
running install_data
Traceback (most recent call last):
  File "setup.py", line 91, in <module>
    scripts      = script_files,
  File "c:\python27\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "c:\python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "c:\python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "c:\python27\lib\distutils\command\install.py", line 575, in run
    self.run_command(cmd_name)
  File "c:\python27\lib\distutils\cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "c:\python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "c:\python27\lib\distutils\command\install_data.py", line 58, in run
    dir = convert_path(f[0])
  File "c:\python27\lib\distutils\util.py", line 204, in convert_path
    raise ValueError, "path '%s' cannot be absolute" % pathname
ValueError: path '/usr/bin' cannot be absolute

0 个答案:

没有答案