pythonでpqkmeansをインストールした際、unicode errorが生じたことについて質問させていただきました。https://teratail.com/questions/102437
そこで、pipを開発バージョンにアップデートするというアドバイス通り、アップデートいたしました。
(py36con) C:\Users\hidek\Downloads\pqkmeans-master>pip -V pip 10.0.0.dev0 from c:\users\hidek\anaconda3\envs\py36con\lib\site-packages\pip-10.0.0.dev0-py3.6.egg\pip (python 3.6)
このpip 10.0.0でpqkemansをダウンロードしたところエラーが発生し、その直しかたがわかりません。
(py36con) C:\Users\hidek\Downloads\pqkmeans-master>python setup.py install
エラー
CMake Error at CMakeLists.txt:2 (project): Cannot enable 64-bit tools with Visual Studio 2010 Express. Install the Microsoft Windows SDK v7.1 to get 64-bit tools: http://msdn.microsoft.com/en-us/windows/bb980924.aspx ・ ・ ・ File "C:\Users\hidek\Anaconda3\envs\py36con\lib\subprocess.py", line 291, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', 'C:\Users\hidek\Downloads\pqkmeans-master', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\hidek\Downloads\pqkmeans-master\build\lib.win-amd64-3.6', '-DPYTHON_EXECUTABLE=C:\Users\hidek\Anaconda3\envs\py36con\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\hidek\Downloads\pqkmeans-master\build\lib.win-amd64-3.6', '-A', 'x64']' returned non-zero exit status 1.
subprocess.pyのline 291付近を以下にのせます。
def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] raise CalledProcessError(retcode, cmd) return 0
line 291は if cmd is None: の部分です
エラーメッセージに書かれてあることは実施済みですか?
Windows SDK v7.1をダウンロードはしたのですが、enable 64-bit tools with Visual Studio 2010 Expressの方法がわからず、そこで止まっています
python の visual studioでの環境構築には、それ用のvisual studion 2010のダウンロードが必要だったりするのでしょうか?今あるのはMicrosoft Visual C++ 2010 Expressです
インストール途中に64-bit toolsに関する選択項目があるかもしれませんので、注意深くインストールを進めて、完了後にもう一度同じエラーになるか試すと良いと思います。
それはWindows SDK v7.1インストール時のことですか?
はい、Install the Microsoft Windows SDK v7.1 to get 64-bit toolsと書いてあるので。
了解です。細かいところまで、ありがとうございます
https://github.com/DwangoMediaVillage/pqkmeansのNote部分に**「We tested this library with Python3, on OS X and Ubuntu 16.04.」**と書いてあります。Windows上での動作実績はなさそうなので、UbuntuかMacでセットアップをすすめたほうがよさそうに見えますし、Windowsでセットアップするとしても結果の対照確認のため、UbuntuかMacが必要なように思われます。
了解いたしました。ご回答ありがとうございます。
あなたの回答
tips
プレビュー