我的系统上安装了 python 2.7.3,我正在尝试安装 Kobo 模块。模块所在的路径是:
C:\Users\nelson.menezes\Desktop\new softwares\kobo-0.3.6
.我打开命令提示符并设置上述路径。然后按照指定运行以下命令来安装 Kobo。
python setup.py 安装
但它给了我以下错误
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
我知道这是由于路径问题而产生的错误。但我不知道如何解决它。如果有人能以任何可能的方式提供帮助,那就太好了。
完整的回溯如下:
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