当前位置:网站首页>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
边栏推荐
- Unity的三种单例模式(饿汉,懒汉,MonoBehaviour)
- 谈谈 SAP iRPA Studio 创建的本地项目的云端部署问题
- Description of vs common shortcut keys
- thinkphp3.2.3中设置路由,优化url
- Plate - forme de surveillance par étapes zabbix
- Prometheus API deletes all data of a specified job
- Unity3d click events added to 3D objects in the scene
- How does laravel run composer dump autoload without emptying the classmap mapping relationship?
- 无法将“pip”项识别为 cmdlet、函数、脚本文件或可运行程序的名称
- Odoo integrated plausible embedded code monitoring platform
猜你喜欢

Mysql database basic operation DQL basic query

95. (cesium chapter) cesium dynamic monomer-3d building (building)

HAVE FUN | “飞船计划”活动最新进展

Numpy -- data cleaning

Description of vs common shortcut keys

Shandong old age Expo, 2022 China smart elderly care exhibition, smart elderly care and aging technology exhibition
![Application example of infinite list [uigridview]](/img/11/3be1c63680e6de8f068e79690ecf12.jpg)
Application example of infinite list [uigridview]

Wireless sensor networks -- ZigBee and 6LoWPAN

Enterprise log analysis system elk

TiDB For PostgreSQL和YugabyteDB在Sysbench上的性能对比
随机推荐
深度之眼(七)——矩阵的初等变换(附:数模一些模型的解释)
Regular expression string
预测——灰色预测
Unity3d click events added to 3D objects in the scene
Shader_ Animation sequence frame
leetcode 241. Different Ways to Add Parentheses 为运算表达式设计优先级(中等)
Laravel constructor and middleware execution order
How to determine whether the checkbox in JS is selected
AE learning 02: timeline
SPI master rx time out中断
Unity drawing plug-in = = [support the update of the original atlas]
分步式監控平臺zabbix
leetcode 241. Different ways to add parentheses design priority for operational expressions (medium)
【Vulnhub靶场】THALES:1
Xcode Revoke certificate
PHP实现微信小程序人脸识别刷脸登录功能
华东师大团队提出,具有DNA调控电路的卷积神经网络的系统分子实现
What is the difference between IP address and physical address
Eye of depth (VII) -- Elementary Transformation of matrix (attachment: explanation of some mathematical models)
Leetcode-136-只出现一次的数(用异或来解答)