我在Windows 7上安装了Python 2.6.6。 我正在尝试用pip安装Graphite Tool。 但是当我运行命令时
pip install carbon
或
pip install graphite-web
我收到错误
ValueError: path 'conf/' cannot end with '/'
或
ValueError: path 'distro/' cannot end with '/'
用于第二个命令。
我该如何解决这个问题?
更新: 完整跟踪:
reading manifest template 'MANIFEST.in'
warning: manifest_maker: standard file '-c' not found
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "c:\users\user\appdata\local\temp\pip_build_user\graphite-web\setup.py", line 64, in <module>
**setup_kwargs
File "C:\Python26\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python26\lib\distutils\dist.py", line 975, in run_commands
self.run_command(cmd)
File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
cmd_obj.run()
File "<string>", line 14, in replacement_run
File "build\bdist.win-amd64\egg\setuptools\command\egg_info.py", line 230, in find_sources
File "build\bdist.win-amd64\egg\setuptools\command\egg_info.py", line 298, in run
File "build\bdist.win-amd64\egg\setuptools\command\sdist.py", line 116, in __read_template_hack
File "C:\Python26\lib\distutils\command\sdist.py", line 336, in read_template
self.filelist.process_template_line(line)
File "C:\Python26\lib\distutils\filelist.py", line 129, in process_template_line
(action, patterns, dir, dir_pattern) = self._parse_template_line(line)
File "C:\Python26\lib\distutils\filelist.py", line 104, in _parse_template_line
dir = convert_path(words[1])
File "C:\Python26\lib\distutils\util.py", line 201, in convert_path
raise ValueError, "path '%s' cannot end with '/'" % pathname
ValueError: path 'distro/' cannot end with '/'
答案 0 :(得分:1)
在 setup.py
文件中,请从包行中删除“/”。 Windows 会出现此问题。
以前的语法:
package_data={'distro': ['distro/','conf/']},
新语法:
package_data={'distro': ['distro','conf']},