当前位置:网站首页>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
- Migration and reprint
- How to determine whether the checkbox in JS is selected
- 分步式监控平台zabbix
- Apache Doris just "graduated": why should we pay attention to this kind of SQL data warehouse?
- There are many ways to realize the pause function in JS
- Numpy --- basic learning notes
- Apache Doris刚“毕业”:为什么应关注这种SQL数据仓库?
- Mysql database basic operation DQL basic query
- What is the difference between IP address and physical address
猜你喜欢

What are compiled languages and interpreted languages?

Shandong old age Expo, 2022 China smart elderly care exhibition, smart elderly care and aging technology exhibition

SPI master rx time out中断

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"?

Leetcode-231-2的幂

深度之眼(七)——矩阵的初等变换(附:数模一些模型的解释)

Good news! Kelan sundb database and Hongshu technology privacy data protection management software complete compatibility adaptation

【C 语言】 题集 of Ⅹ

Odoo集成Plausible埋码监控平台
Notification uses full resolution
随机推荐
logback.xml配置不同级别日志,设置彩色输出
Regular expression string
SysOM 案例解析:消失的内存都去哪了 !| 龙蜥技术
01tire+链式前向星+dfs+贪心练习题.1
Three singleton modes of unity (hungry man, lazy man, monobehavior)
How to determine whether the checkbox in JS is selected
[vulnhub range] thales:1
Enterprise log analysis system elk
Apache Doris just "graduated": why should we pay attention to this kind of SQL data warehouse?
Xcode Revoke certificate
Unity3D_ Class fishing project, control the distance between collision walls to adapt to different models
记一次项目的迁移过程
Use moviepy Editor clips videos and intercepts video clips in batches
torch.numel作用
[excelexport], Excel to Lua, JSON, XML development tool
用手机在通达信上开户靠谱吗?这样炒股有没有什么安全隐患
Shandong old age Expo, 2022 China smart elderly care exhibition, smart elderly care and aging technology exhibition
Bidding announcement: Panjin people's Hospital Panjin hospital database maintenance project
Wireless sensor networks -- ZigBee and 6LoWPAN
hellogolang