前提・実現したいこと
Phythonで機械学習の変換システムを作っています。
Pysptkのインストール中に次のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
dos.bat
1 Collecting pysptk 2 Using cached pysptk-0.1.10.tar.gz 3 Complete output from command python setup.py egg_info: 4 Traceback (most recent call last): 5 File "<string>", line 1, in <module> 6 File "C:\Users\KHB15\AppData\Local\Temp\pip-build-pwyzyltm\pysptk\setup.py", line 25, in <module> 7 ['git', 'rev-parse', 'HEAD'], cwd=cwd).decode('ascii').strip() 8 File "C:\Users\KHB15\Anaconda3\lib\subprocess.py", line 336, in check_output 9 **kwargs).stdout 10 File "C:\Users\KHB15\Anaconda3\lib\subprocess.py", line 403, in run 11 with Popen(*popenargs, **kwargs) as process: 12 File "C:\Users\KHB15\Anaconda3\lib\subprocess.py", line 709, in __init__ 13 restore_signals, start_new_session) 14 File "C:\Users\KHB15\Anaconda3\lib\subprocess.py", line 997, in _execute_child 15 startupinfo) 16 FileNotFoundError: [WinError 2] 指定されたファイルが見つかりません。 17 Command "python setup.py egg_info" failed with error code 1 in C:\Users\KHB15\AppData\Local\Temp\pip-build-pwyzyltm\pysptk\
gitを入れて再実行しました。
dos.bat
1> C:\become-yukarin\become-yukarin\scripts>git --version 2git version 2.16.2.windows.1 3 4C:\become-yukarin\become-yukarin\scripts>pip install pysptk 5Collecting pysptk 6 Using cached pysptk-0.1.10.tar.gz 7Requirement already satisfied: numpy>=1.8.0 in c:\anaconda3\lib\site-packages (from pysptk) 8Requirement already satisfied: six in c:\anaconda3\lib\site-packages (from pysptk) 9Requirement already satisfied: decorator in c:\anaconda3\lib\site-packages (from pysptk) 10Building wheels for collected packages: pysptk 11 Running setup.py bdist_wheel for pysptk ... error 12 Failed building wheel for pysptk 13 Running setup.py clean for pysptk 14Failed to build pysptk 15Installing collected packages: pysptk 16 Running setup.py install for pysptk ... error 17Exception: 18Traceback (most recent call last): 19 File "C:\Anaconda3\lib\site-packages\pip\compat\__init__.py", line 73, in console_to_str 20 return s.decode(sys.__stdout__.encoding) 21UnicodeDecodeError: 'utf-8' codec can't decode byte 0x83 in position 5: invalid start byte 22 23During handling of the above exception, another exception occurred: 24 25Traceback (most recent call last): 26 File "C:\Anaconda3\lib\site-packages\pip\commands\install.py", line 342, in run 27 prefix=options.prefix_path, 28 File "C:\Anaconda3\lib\site-packages\pip\req\req_set.py", line 784, in install 29 **kwargs 30 File "C:\Anaconda3\lib\site-packages\pip\req\req_install.py", line 878, in install 31 spinner=spinner, 32 File "C:\Anaconda3\lib\site-packages\pip\utils\__init__.py", line 676, in call_subprocess 33 line = console_to_str(proc.stdout.readline()) 34 File "C:\Anaconda3\lib\site-packages\pip\compat\__init__.py", line 75, in console_to_str 35 return s.decode('utf_8') 36UnicodeDecodeError: 'utf-8' codec can't decode byte 0x83 in position 5: invalid start byte 37 38During handling of the above exception, another exception occurred: 39 40Traceback (most recent call last): 41 File "C:\Anaconda3\lib\site-packages\pip\commands\install.py", line 385, in run 42 requirement_set.cleanup_files() 43 File "C:\Anaconda3\lib\site-packages\pip\req\req_set.py", line 729, in cleanup_files 44 req.remove_temporary_source() 45 File "C:\Anaconda3\lib\site-packages\pip\req\req_install.py", line 977, in remove_temporary_source 46 rmtree(self.source_dir) 47 File "C:\Anaconda3\lib\site-packages\pip\_vendor\retrying.py", line 49, in wrapped_f 48 return Retrying(*dargs, **dkw).call(f, *args, **kw) 49 File "C:\Anaconda3\lib\site-packages\pip\_vendor\retrying.py", line 212, in call 50 raise attempt.get() 51 File "C:\Anaconda3\lib\site-packages\pip\_vendor\retrying.py", line 247, in get 52 six.reraise(self.value[0], self.value[1], self.value[2]) 53 File "C:\Anaconda3\lib\site-packages\pip\_vendor\six.py", line 686, in reraise 54 raise value 55 File "C:\Anaconda3\lib\site-packages\pip\_vendor\retrying.py", line 200, in call 56 attempt = Attempt(fn(*args, **kwargs), attempt_number, False) 57 File "C:\Anaconda3\lib\site-packages\pip\utils\__init__.py", line 102, in rmtree 58 onerror=rmtree_errorhandler) 59 File "C:\Anaconda3\lib\shutil.py", line 494, in rmtree 60 return _rmtree_unsafe(path, onerror) 61 File "C:\Anaconda3\lib\shutil.py", line 384, in _rmtree_unsafe 62 _rmtree_unsafe(fullname, onerror) 63 File "C:\Anaconda3\lib\shutil.py", line 384, in _rmtree_unsafe 64 _rmtree_unsafe(fullname, onerror) 65 File "C:\Anaconda3\lib\shutil.py", line 384, in _rmtree_unsafe 66 _rmtree_unsafe(fullname, onerror) 67 File "C:\Anaconda3\lib\shutil.py", line 376, in _rmtree_unsafe 68 onerror(os.listdir, path, sys.exc_info()) 69 File "C:\Anaconda3\lib\site-packages\pip\utils\__init__.py", line 112, in rmtree_errorhandler 70 os.chmod(path, stat.S_IWRITE) 71PermissionError: [WinError 5] アクセスが拒否されました。: 'C:\Users\KHB15\AppData\Local\Temp\pip-build-hy1k76f9\pysptk\lib\SPTK\include' 72 73During handling of the above exception, another exception occurred: 74 75Traceback (most recent call last): 76 File "C:\Anaconda3\lib\site-packages\pip\basecommand.py", line 215, in main 77 status = self.run(options, args) 78 File "C:\Anaconda3\lib\site-packages\pip\commands\install.py", line 385, in run 79 requirement_set.cleanup_files() 80 File "C:\Anaconda3\lib\site-packages\pip\utils\build.py", line 38, in __exit__ 81 self.cleanup() 82 File "C:\Anaconda3\lib\site-packages\pip\utils\build.py", line 42, in cleanup 83 rmtree(self.name) 84 File "C:\Anaconda3\lib\site-packages\pip\_vendor\retrying.py", line 49, in wrapped_f 85 return Retrying(*dargs, **dkw).call(f, *args, **kw) 86 File "C:\Anaconda3\lib\site-packages\pip\_vendor\retrying.py", line 212, in call 87 raise attempt.get() 88 File "C:\Anaconda3\lib\site-packages\pip\_vendor\retrying.py", line 247, in get 89 six.reraise(self.value[0], self.value[1], self.value[2]) 90 File "C:\Anaconda3\lib\site-packages\pip\_vendor\six.py", line 686, in reraise 91 raise value 92 File "C:\Anaconda3\lib\site-packages\pip\_vendor\retrying.py", line 200, in call 93 attempt = Attempt(fn(*args, **kwargs), attempt_number, False) 94 File "C:\Anaconda3\lib\site-packages\pip\utils\__init__.py", line 102, in rmtree 95 onerror=rmtree_errorhandler) 96 File "C:\Anaconda3\lib\shutil.py", line 494, in rmtree 97 return _rmtree_unsafe(path, onerror) 98 File "C:\Anaconda3\lib\shutil.py", line 384, in _rmtree_unsafe 99 _rmtree_unsafe(fullname, onerror) 100 File "C:\Anaconda3\lib\shutil.py", line 384, in _rmtree_unsafe 101 _rmtree_unsafe(fullname, onerror) 102 File "C:\Anaconda3\lib\shutil.py", line 384, in _rmtree_unsafe 103 _rmtree_unsafe(fullname, onerror) 104 File "C:\Anaconda3\lib\shutil.py", line 376, in _rmtree_unsafe 105 onerror(os.listdir, path, sys.exc_info()) 106 File "C:\Anaconda3\lib\site-packages\pip\utils\__init__.py", line 112, in rmtree_errorhandler 107 os.chmod(path, stat.S_IWRITE) 108PermissionError: [WinError 5] アクセスが拒否されました。: 'C:\Users\KHB15\AppData\Local\Temp\pip-build-hy1k76f9\pysptk\lib\SPTK\include'
該当のソースコード
pip install pysptk
試したこと
https://qiita.com/ruteshi_SI_shiteru/items/be6a58276bdbd67dc096
によるpipのファイルの書き換え
システム入れ直し
Gitを入れてみました。
補足情報(FW/ツールのバージョンなど)
Python3.6(Anaconda)2.7や3.4や3.5ではダメでした。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/03/08 08:03
2018/03/08 08:12
2018/03/08 08:12
2018/03/08 08:12