当前位置:网站首页>Pycharm terminal enables virtual environment
Pycharm terminal enables virtual environment
2022-07-07 16:25:00 【Bashan queer dialect】
When building a new project , Select new virtual environment

When the project opens , Start the terminal , But often found , The virtual environment is not turned on , As a result, some packages are installed in the global environment .
One solution is to manually start the virtual environment

If there is an error opening , Such as “ Disable scripts from running ” Or do not recognize the command , Just open it as an administrator powershell, Then run the following command
set-executionpolicy remotesignedSet to “y” that will do
But at this time , If you want to shut down the virtual environment by command

It often doesn't work , It is also necessary to manually shut down the terminal , And on again , Will shut down the virtual environment
Various reasons are not studied in detail ( It should be a matter of authority ), But it's been tested , If the terminal is replaced with cmd, There is basically no problem above
- Open the project , The virtual environment will be opened by default
- The commands to open and close the virtual environment can work normally
The replacement method is “File-settings-Tool-Terminal”

here , Close the terminal in the project , And on again , Just use cmd Terminal

But here's the thing
For existing projects , Even if the terminal is modified to cmd, Open again , The startup environment may still not take effect
There is no problem with creating new projects
in addition , Try not to create the project under the Chinese Directory
边栏推荐
- Common training data set formats for target tracking
- Three singleton modes of unity (hungry man, lazy man, monobehavior)
- What about the pointer in neural network C language
- Eye of depth (VII) -- Elementary Transformation of matrix (attachment: explanation of some mathematical models)
- 无法将“pip”项识别为 cmdlet、函数、脚本文件或可运行程序的名称
- Bidding announcement: Panjin people's Hospital Panjin hospital database maintenance project
- markdown公式编辑教程
- JS modularization
- Eye of depth (VI) -- inverse of matrix (attachment: some ideas of logistic model)
- 通知Notification使用全解析
猜你喜欢

MySQL数据库基本操作-DQL-基本查询

Excessive dependence on subsidies, difficult collection of key customers, and how strong is the potential to reach the dream of "the first share of domestic databases"?

Continuous creation depends on it!

Balanced binary tree (AVL)

Wireless sensor networks -- ZigBee and 6LoWPAN

记一次项目的迁移过程

AE learning 01: AE complete project summary
通知Notification使用全解析

Power of leetcode-231-2
![[vulnhub range] thales:1](/img/fb/721d08697afe9b26c94fede628c4d1.png)
[vulnhub range] thales:1
随机推荐
Logback日志框架第三方jar包 免费获取
How does laravel run composer dump autoload without emptying the classmap mapping relationship?
Unity3D_ Class fishing project, control the distance between collision walls to adapt to different models
Notification uses full resolution
Power of leetcode-231-2
AE learning 01: AE complete project summary
Application example of infinite list [uigridview]
Asyncio concept and usage
分类模型评价标准(performance measure)
Use moviepy Editor clips videos and intercepts video clips in batches
torch.numel作用
spark调优(三):持久化减少二次查询
Three singleton modes of unity (hungry man, lazy man, monobehavior)
目标跟踪常见训练数据集格式
面试题 01.02. 判定是否互为字符重排-辅助数组算法
three.js打造酷炫下雪效果
Rongyun won the 2022 China Xinchuang digital office portal excellence product award!
Mysql database backup script
Laravel 中config的用法
[hcsd celebrity live broadcast] teach the interview tips of big companies in person - brief notes