在manim安装中遇到的一些小问题
在使用Chocolatey安装MikTex时,出现以下的报错
Chocolatey v1.1.0
Installing the following packages:
manimce
By installing, you accept licenses for the packages.
[NuGet] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 104.20.74.28:443
manimce not installed. An error occurred during installation:
Unable to resolve dependency 'ffmpeg (≥ 4.2)'.
manimce package files install failed with exit code 1. Performing other installation steps.
The install of manimce was NOT successful.
manimce not installed. An error occurred during installation:
Unable to resolve dependency 'ffmpeg (≥ 4.2)'.
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- manimce (exited 1) - manimce not installed. An error occurred during installation:
Unable to resolve dependency 'ffmpeg (≥ 4.2)'.
Enjoy using Chocolatey? Explore more amazing features to take your
experience to the next level at
https://chocolatey.org/compare
在查阅了相关资料之后,发现系统禁止运行远程脚本,具体的参考文档在https://docs.microsoft.com/zh-cn/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.2
可以利用以下的代码修改策略:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
RemoteSigned
- 服务器计算机的默认Windows策略。
- 脚本可以运行。
- 需要受信任的发布者对从 Internet 下载的脚本和配置文件(包括电子邮件和即时消息程序)进行数字签名。
- 对于在本地计算机上编写且未从 Internet 下载的脚本,不需要数字签名。
- 如果脚本未受阻止(例如使用 cmdlet),则运行从 Internet Unblock-File 下载且未签名的脚本。
- 从 Internet 来源(而不是 Internet)运行未签名脚本的风险,以及可能是恶意的已签名脚本的风险。
修改后安装成功