当前位置:网站首页>[Win11] PowerShell cannot activate Conda virtual environment
[Win11] PowerShell cannot activate Conda virtual environment
2022-08-02 05:23:00 【CS research GO】
I. Background of the problem
When installing Typora according to Tutorial 1, you need to use PowerShell to execute PythonOrder.However, [Win11] PowerShell cannot activate the Conda virtual environment, and the error is shown in the following figure.
Second, the solution
According to the error report, it is found that the reason why the Conda environment cannot be activated is due to the Conda version problem. PowerShell currently only supports Conda version 4.6.The solution via the following blog (Scenario 2), this can also be confirmed.
Therefore, it is recommended to solve it in the following two ways:
- Abandon Powershell and use cmd to activate the Conda virtual environment. The specific operations are as follows:
- Win + R, enter [cmd] to enter the command line;
- Enter the command: conda activate base (virtual environment name) to successfully activate the Conda virtual environment, and then execute the Python command.
- Still choose to use Powershell, activate the Conda virtual environment.
# Check the Conda version, if the Conda version is higher than 4.6.7, you need to downgrade itconda -V# View the Conda environment to be activated, the python version of this environment requires <=3.7conda info --env# Initialize powershellconda init powershell# Change the execution strategy of powershellSet-ExecutionPolicy -ExecutionPolicy RemoteSigned#Conda downgradeconda install -n base conda==4.6.7# After the downgrade is successful, perform the activation operationactivate# Call the Conda command to activate the virtual environmentconda activate base
PS: After successfully activating the Conda virtual environment, it was found that there were other problems during the tutorial installation process.Therefore, Typora was successfully installed using Tutorial 2.
边栏推荐
猜你喜欢
随机推荐
工作过程中问题汇总
吴恩达机器学习系列课程笔记——第十四章:降维(Dimensionality Reduction)
v-model修饰符
树莓派4B安装OPENCV遇到ffmpeg库版本太高的问题【后续更新】
shell脚本的基础知识
设置图片纵横比
el-input 只能输入整数(包括正数、负数、0)或者只能输入整数(包括正数、负数、0)和小数
企业需要知道的5个 IAM 最佳实践
Mysql数据库入门 (基础知识点 由来 各种指令 如何运用)
Excel操作技巧大全
【学习笔记】如何打造运维组织架构
微服务入门
ftp服务的部署和优化
ScholarOne Manuscripts提交期刊LaTeX文件,无法成功转换PDF!
Your device is corrupt. It cant‘t be trusted and may not work propely.
ICMP timestamp请求响应漏洞
Research Notes (8) Deep Learning and Its Application in WiFi Human Perception (Part 1)
onvif/rtsp转gb28181协议,无缝对接国标平台
科研笔记(八) 深度学习及其在 WiFi 人体感知中的应用(下)
OpenCV内阈值处理方法