当前位置:网站首页>[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.
边栏推荐
猜你喜欢
随机推荐
腾讯云+keepalived搭建云服务器主备实践
吴恩达机器学习系列课程笔记——第十八章:应用实例:图片文字识别(Application Example: Photo OCR)
深蓝学院-视觉SLAM十四讲-第五章作业
Plus版SBOM:流水线物料清单PBOM
使用docker-compose 安装Redis最新版,并且设置密码
Jetson Nano 2GB Developer Kit 安装说明
如何将PDF中的一部分页面另存为新的PDF文件
深蓝学院-手写VIO作业-第二章
Liunx服务环境部署
企业级的dns服务器的搭建
MapFi论文架构整理
视觉SLAM十四讲--第13讲 实践:设计SLAM系统(最详细的代码调试运行步骤)
深度学习基础之批量归一化(BN)
Autowired注解与Resource注解的区别
samba,nfs,iscsi网络文件系统
全球主要国家地区数据(MySQL数据)
吴恩达机器学习系列课程笔记——第十六章:推荐系统(Recommender Systems)
未来智安入围《2022年中国数字安全百强报告》,威胁检测与响应领域唯一XDR厂商
微服务入门
ffmpeg视频播放、格式转化、缩放等命令