考虑通常的场景 - 我想创建一个虚拟环境并安装一些软件包。说
python3 -m venv venv
source venv/bin/activate
pip install databricks-cli
Run Code Online (Sandbox Code Playgroud)
在安装过程中,我收到错误
Building wheels for collected packages: databricks-cli
Building wheel for databricks-cli (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/paulius/Documents/wheeltest/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-m7jmyh1m/databricks-cli/setup.py'"'"'; __file__='"'"'/tmp/pip-install-m7jmyh1m/databricks-cli/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-maxix98x
cwd: /tmp/pip-install-m7jmyh1m/databricks-cli/
Complete output (8 lines):
/tmp/pip-install-m7jmyh1m/databricks-cli/setup.py:24: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp …Run Code Online (Sandbox Code Playgroud) 我正在开发一个带有自定义 UI 的 WiX 引导程序应用程序,该应用程序安装了一个.msi和一些.exe文件。我有一个.NET 4.8必须安装在系统上的先决条件。如果未安装,则首先安装.NET 4.8框架,然后安装所有其他项目。
我正在使用WiX v3.14.0.5722安装程序应用程序。我按照这篇文章浏览安装文档.NET 4.8。链接:如何:使用 Burn 安装 .NET Framework
<Chain>
<PackageGroupRef Id="NetFx48Redist"/>
.....
.....
</Chain>
Run Code Online (Sandbox Code Playgroud)
我还尝试检查并为该.msi项目设置条件,如下所示。
<PropertyRef Id="WIX_IS_NETFRAMEWORK_48_OR_LATER_INSTALLED"/>
.......
.......
<Condition Message="This application requires .NET Framework 4.8. Please install the .NET Framework then run this installer again.">
<![CDATA[Installed OR WIX_IS_NETFRAMEWORK_48_OR_LATER_INSTALLED]]>
</Condition>
Run Code Online (Sandbox Code Playgroud)
但没有解决方案对我有用。我收到以下错误。
Bundle.wxs(67,0): error LGHT0094: Unresolved reference to symbol 'ChainPackageGroup:NetFx48Redist'
Run Code Online (Sandbox Code Playgroud)
然后我找到了一些关于.NET 4.8安装和导入NetFx48.wxs文件的实现wixtoolset/wix3,然后 ChainPackageGroup:NetFx48Redist错误消失了,但我发现了另一个问题,如下所示: …