简体   繁体   English

我在编辑器中创建了一个虚拟环境,但是当我想通过此代码激活它时(kivy_venv/Scripts/activate)编辑器给了我错误消息

[英]I created a virtual environment in my editor but when I wanted to activate it by this code (kivy_venv/Scripts/activate) editor gave me error message

The error message was ( cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details )错误消息是(无法加载,因为此系统上禁用了脚本的执行。有关更多详细信息,请参阅“get-help about_signing”)

Can you help me你能帮助我吗

This seems to be an error of Powershell.这似乎是 Powershell 的错误。

It should work if you just use the CMD instead.如果您只使用 CMD 代替,它应该可以工作。

If you want to stick with Powershell, then you can try to disable the restriction with Set-ExecutionPolicy RemoteSigned (Powershell has to be run as Administrator)如果您想坚持使用 Powershell,那么您可以尝试使用Set-ExecutionPolicy RemoteSigned禁用限制(Powershell 必须以管理员身份运行)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM