[心得] unitypack 安裝問題

看板Python作者時間4年前 (2020/08/20 19:28), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
pip install unitypack 怎麼搞都是 Running setup.py install for decrunch ... error ERROR: Command errored out with exit status 1: error: command 'cl.exe' failed: No such file or directory visual studio裡面c++能裝的全裝了 找不到 ================================== 直接打開visual studio build tools C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools>cl Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29111 for x86 Copyright (C) Microsoft Corporation. 著作權所有,並保留一切權利。 使用方式: cl [ option... ] filename... [ /link linkoption... ] 在這邊安裝 還是找不到 ================================== 發現visual studio根本沒加環境變數 直接修改系統環境變數 C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\ 下面一堆版本 每個都試過 改完後powershell要重開 直接cl 確定有 然後還是找不到 窩TM ================================== 最後終於找到 有人弄了個不需要decrunch的版本 下載 git clone https://github.com/tellowkrinkle/UnityPack 到該目錄下(需要管理員權限) python setup.py install 安裝成功 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.33.176.49 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1597922907.A.FEF.html
文章代碼(AID): #1VFbvR_l (Python)
文章代碼(AID): #1VFbvR_l (Python)