当前位置:网站首页>[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.
边栏推荐
猜你喜欢
随机推荐
盒子移动和滚动加载效果练习
8款最佳实践,保护你的 IaC 安全!
微服务入门
如何将PDF中的一部分页面另存为新的PDF文件
科研笔记(八) 深度学习及其在 WiFi 人体感知中的应用(下)
树莓派上FFMPEG/VLC播放海康网络摄像仪视频
吴恩达机器学习系列课程笔记——第十四章:降维(Dimensionality Reduction)
单目3D目标检测之入门
深度学习基础之过拟合、欠拟合问题和正则化
Class ‘PHPWord_Writer_Word2003‘ not found
视频监控平台-国标28181-2016版平台,已公网部署
JS事件循环机制
CC1101魔幻的收发切换机制
rtsp转flv
MongoDB相关记录
《2022年中国网络安全市场全景图》
Mysql数据库入门 (基础知识点 由来 各种指令 如何运用)
[Study Notes] How to Create an Operation and Maintenance Organizational Structure
科研笔记(五) SLAC WiFi Fingerprint+ Step counter融合定位
ES6中变量的使用及结构赋值