我在使用Python3安装skdata时遇到了一些麻烦。我究竟做错了什么?我目前的python版本是3.5.2。这是我的控制台输出。
$ pip install skdata
Collecting skdata
Using cached skdata-0.0.4.tar.gz
Complete output from command python setup.py egg_info:
RefactoringTool: Skipping optional fixer: buffer
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: set_literal
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: Can't open /private/var/folders/b_/v88qj4rx52z9mmx67tlwkcpm0000gn/T/pip-build-_q95pm4w/skdata/build/py3k: [Errno 2] No such file or directory: '/private/var/folders/b_/v88qj4rx52z9mmx67tlwkcpm0000gn/T/pip-build-_q95pm4w/skdata/build/py3k'
RefactoringTool: No files need to be modified.
RefactoringTool: There was 1 error:
RefactoringTool: Can't open /private/var/folders/b_/v88qj4rx52z9mmx67tlwkcpm0000gn/T/pip-build-_q95pm4w/skdata/build/py3k: [Errno 2] No such file or directory: '/private/var/folders/b_/v88qj4rx52z9mmx67tlwkcpm0000gn/T/pip-build-_q95pm4w/skdata/build/py3k'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/b_/v88qj4rx52z9mmx67tlwkcpm0000gn/T/pip-build-_q95pm4w/skdata/setup.py", line 64, in <module>
raise Exception('2to3 failed, exiting ...')
Exception: 2to3 failed, exiting ...
Copying source tree into build/py3k for 2to3 transformation...
Converting to Python3 via 2to3...
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/b_/v88qj4rx52z9mmx67tlwkcpm0000gn/T/pip-build-_q95pm4w/skdata/
答案 0 :(得分:0)
您必须检出存储库,并将/ skdata / skdata目录复制到/usr/lib/python3.6/site-packages/目录中
有关更多信息,请参见此github线程: