当前位置:网站首页>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
边栏推荐
- A link opens the applet code. After compilation, it is easy to understand
- Shandong old age Expo, 2022 China smart elderly care exhibition, smart elderly care and aging technology exhibition
- Wireless sensor networks -- ZigBee and 6LoWPAN
- Lecturer solicitation order | Apache seatunnel (cultivating) meetup sharing guests are in hot Recruitment!
- Sysom case analysis: where is the missing memory| Dragon lizard Technology
- "The" "PIP" "entry cannot be recognized as the name of a cmdlet, function, script file, or runnable program."
- 目标跟踪常见训练数据集格式
- Markdown formula editing tutorial
- TCP framework___ Unity
- Bidding announcement: Panjin people's Hospital Panjin hospital database maintenance project
猜你喜欢

Talk about the cloud deployment of local projects created by SAP IRPA studio

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

spark调优(三):持久化减少二次查询

企业级日志分析系统ELK
![[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
通知Notification使用全解析

华东师大团队提出,具有DNA调控电路的卷积神经网络的系统分子实现

Unity3D_ Class fishing project, control the distance between collision walls to adapt to different models

Lecturer solicitation order | Apache seatunnel (cultivating) meetup sharing guests are in hot Recruitment!

PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()
随机推荐
【Vulnhub靶场】THALES:1
Laravel constructor and middleware execution order
Apache Doris刚“毕业”:为什么应关注这种SQL数据仓库?
There are many ways to realize the pause function in JS
MySQL中, 如何查询某一天, 某一月, 某一年的数据
HAVE FUN | “飞船计划”活动最新进展
华东师大团队提出,具有DNA调控电路的卷积神经网络的系统分子实现
hellogolang
Common training data set formats for target tracking
How does laravel run composer dump autoload without emptying the classmap mapping relationship?
安科瑞电网智能化发展的必然趋势电力系统采用微机保护装置是
Markdown formula editing tutorial
A link opens the applet code. After compilation, it is easy to understand
Set the route and optimize the URL in thinkphp3.2.3
Laravel changed the session from file saving to database saving
hellogolang
预测——灰色预测
Leetcode-136- number that appears only once (solve with XOR)
The unity vector rotates at a point
Xcode Revoke certificate