当前位置:网站首页>[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 basePS: 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.
边栏推荐
猜你喜欢
随机推荐
激光驱鸟器
树莓派4B开机自动挂载移动硬盘,以及遇到the root account is locked问题
The CCF brush topic tour - the first topic
计算属性的学习
Your device is corrupt. It cant‘t be trusted and may not work propely.
腾讯云+keepalived搭建云服务器主备实践
三维目标检测之OpenPCDet环境配置及demo测试
QT中更换OPENCV版本(3->4),以及一些宏定义的改变
两端是圆角的进度条微信对接笔记
WIN10什么都没开内存占用率过高, WIN7单网卡设置双IP
深蓝学院-视觉SLAM十四讲-第七章作业
深蓝学院-手写VIO作业-第二章
jetracer_pro_2GB AI Kit系统安装使用说明
LVS+Keepalived实现高可用的负载均衡
BOM学习
单目三维目标检测之CaDDN论文阅读
flasgger手写phpwind接口文档
节流阀和本地存储
Class ‘PHPWord_Writer_Word2003‘ not found
树莓派4B安装OPENCV遇到ffmpeg库版本太高的问题【后续更新】



![[Study Notes] How to Create an Operation and Maintenance Organizational Structure](/img/9d/037c9d2d66644d6b949721d506be03.png)





