当前位置:网站首页>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
边栏推荐
- Set the route and optimize the URL in thinkphp3.2.3
- Three. JS introductory learning notes 19: how to import FBX static model
- 记一次项目的迁移过程
- Laravel5.1 Routing - routing packets
- SysOM 案例解析:消失的内存都去哪了 !| 龙蜥技术
- Bidding announcement: 2022 Yunnan Unicom gbase database maintenance public comparison and selection project (second) comparison and selection announcement
- The inevitable trend of the intelligent development of ankerui power grid is that microcomputer protection devices are used in power systems
- Unity3D_ Class fishing project, bullet rebound effect is achieved
- Unity drawing plug-in = = [support the update of the original atlas]
- SPI master RX time out interrupt
猜你喜欢

Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"

Multiplication in pytorch: mul (), multiply (), matmul (), mm (), MV (), dot ()

Balanced binary tree (AVL)

谈谈 SAP iRPA Studio 创建的本地项目的云端部署问题

Numpy -- epidemic data analysis case

pycharm 终端部启用虚拟环境
![[flower carving experience] 15 try to build the Arduino development environment of beetle esp32 C3](/img/8f/ca9ab042916f68de7994d9f2124da9.jpg)
[flower carving experience] 15 try to build the Arduino development environment of beetle esp32 C3

How does geojson data merge the boundaries of regions?

如何快速检查钢网开口面积比是否符合 IPC7525

Logback日志框架第三方jar包 免费获取
随机推荐
asyncio 概念和用法
torch. Numel action
AE learning 01: AE complete project summary
预测——灰色预测
Unity3D_ Class fishing project, bullet rebound effect is achieved
Usage of config in laravel
The differences between exit, exit (0), exit (1), exit ('0 '), exit ('1'), die and return in PHP
Vs tool word highlight with margin
A link opens the applet code. After compilation, it is easy to understand
SysOM 案例解析:消失的内存都去哪了 !| 龙蜥技术
Enterprise log analysis system elk
统计学习方法——感知机
星瑞格数据库入围“2021年度福建省信息技术应用创新典型解决方案”
hellogolang
Asyncio concept and usage
删除 console 语句引发的惨案
华东师大团队提出,具有DNA调控电路的卷积神经网络的系统分子实现
Unity的三种单例模式(饿汉,懒汉,MonoBehaviour)
Laravel 中config的用法
Regular expression string