5

Python3.10.4激活venv环境失败解决方法

 1 year ago
source link: https://blog.51cto.com/u_15867943/6008546
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Python3.10.4激活venv环境失败解决方法

精选 原创

环境 python -m venv venv

Python3.10.4激活venv环境失败解决方法_flask

venv\Scripts\activate 激活环境失败 解决方案

Python3.10.4激活venv环境失败解决方法_重启_02

输入get-executionpolicy

PS D:\flaskBlog> get-executionpolicy

Restricted

Python3.10.4激活venv环境失败解决方法_python_03

PS D:\flaskBlog> set-executionpolicy remotesigned

PS D:\flaskBlog> get-executionpolicy(最后检查是否更改成功)

Python3.10.4激活venv环境失败解决方法_重启_04

重启VSCode,执行venv\Scripts\activate

Python3.10.4激活venv环境失败解决方法_flask_05

查看环境激活成功。

  • 2
  • 2收藏
  • 评论
  • 分享
  • 举报

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK