作者x94fujo6 ()
看板Python
标题[心得] unitypack 安装问题
时间Thu Aug 20 19:28:23 2020
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://webptt.com/cn.aspx?n=bbs/Python/M.1597922907.A.FEF.html