ERROR: When restricting platform and interpreter constraints using --python-version, --platform, --abi, or --implementation, either --no-deps must be set, or --only-binary=:all: must be set and --no-binary must not be set (or must be set to :none:).
时间: 2023-10-06 09:11:45 浏览: 139
这个错误是因为你在安装 Python 包时指定了特定的平台、解释器版本等限制条件,但没有同时指定是否允许安装依赖包。为了解决这个问题,你可以在安装命令中添加 `--no-deps` 参数,表示不安装依赖包,或者添加 `--only-binary=:all:` 参数,表示只安装二进制文件,不安装源码。如果你使用了 `--no-binary` 参数,则需要将其设置为 `:none:`,表示不安装任何二进制文件。
相关问题
PS C:\WINDOWS\system32> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) Forcing web requests to allow TLS v1.2 (Required for requests to Chocolatey.org) Getting latest version of the Chocolatey package for download. Not using proxy. Getting Chocolatey from https://community.chocolatey.org/api/v2/package/chocolatey/2.0.0. Downloading https://community.chocolatey.org/api/v2/package/chocolatey/2.0.0 to C:\Users\27748\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip Not using proxy. Extracting C:\Users\27748\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip to C:\Users\27748\AppData\Local\Temp\chocolatey\chocoInstall Installing Chocolatey on the local machine Creating ChocolateyInstall as an environment variable (targeting 'Machine') Setting ChocolateyInstall to 'C:\ProgramData\chocolatey' WARNING: It's very likely you will need to close and reopen your shell before you can use choco. Restricting write permissions to Administrators We are setting up the Chocolatey package repository. The packages themselves go to 'C:\ProgramData\chocolatey\lib' (i.e. C:\ProgramData\chocolatey\lib\yourPackageName). A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin' and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'. Creating Chocolatey folders if they do not already exist. chocolatey.nupkg file not installed in lib. Attempting to locate it from bootstrapper. PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding... 警告: Not setting tab completion: Profile file does not exist at 'C:\Users\27748\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'. Chocolatey (choco.exe) is now ready. You can call choco from anywhere, command line or powershell by typing choco. Run choco /? for a list of functions. You may need to shut down and restart powershell and/or consoles first prior to using choco. Ensuring Chocolatey commands are on the path Ensuring chocolatey.nupkg is in the lib folder PS C:\WINDOWS\system32>
这段代码是在 Windows PowerShell 中安装 Chocolatey 的过程,Chocolatey 是一个 Windows 包管理器,可以用来方便地安装、更新和卸载各种软件。这段代码的作用是:
1. 设置 PowerShell 的执行策略为 Bypass,即不限制脚本的执行。
2. 设置 .NET Framework 的安全协议为 TLS 1.2,以便能够从 Chocolatey 官网下载安装包。
3. 使用 WebClient 类下载 Chocolatey 安装脚本,保存到临时文件夹。
4. 解压安装脚本,并执行其中的命令来安装 Chocolatey。
5. 将 Chocolatey 的安装路径加入 PATH 环境变量,以便在命令行中可以直接使用 choco 命令。
注意:在运行此脚本之前,建议先了解脚本的内容,确保它是安全的并符合你的需求。
Error = InputPoint- pp->rOut; pp->ContrlOut=0.0407*Error-0.04028*pp->error_1 //calculate the controlling quantity directly +0.8187*pp->u_1+(1-0.8187)*pp->u_6; pp->error_2=pp->error_1; pp->error_1=Error; pp->u_6=pp->u_5; /*get the next controlling quantity*/ pp->u_5=pp->u_4; pp->u_4=pp->u_3; pp->u_3=pp->u_2; pp->u_2=pp->u_1; pp->u_1=pp->ContrlOut; if(pp->ContrlOut>=1.0) /*Restricting Maxim PID Out*/ pp->ContrlOut=1.0; if(pp->ContrlOut<0) pp->ContrlOut=0; return pp->ContrlOut; //此公式用到的大林算法离散化方法
抱歉,我并没有看到这段代码中使用到大林算法的离散化方法。这段代码是一个PID控制器的实现,其中的公式是PID控制器的控制规律。PID控制器的作用是根据当前的误差(偏差)来计算输出量,以实现对被控对象的控制。这里使用了比例项、积分项和微分项,计算出来的控制量通过一些限制后作为本次的输出值,并同时更新一些历史变量的值,用于下一次的计算。