当前位置:网站首页>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
边栏推荐
- three.js打造酷炫下雪效果
- Dotween -- ease function
- PHP实现执行定时任务的几种思路详解
- 删除 console 语句引发的惨案
- Unity3D_ Class fishing project, control the distance between collision walls to adapt to different models
- 融云斩获 2022 中国信创数字化办公门户卓越产品奖!
- Shipping companies' AI products are mature, standardized and applied on a large scale. CIMC, the global leader in port and shipping AI / container AI, has built a benchmark for international shipping
- Logback logging framework third-party jar package is available for free
- Unity3D_ Class fishing project, bullet rebound effect is achieved
- PHP实现微信小程序人脸识别刷脸登录功能
猜你喜欢

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

删除 console 语句引发的惨案

【Vulnhub靶场】THALES:1

Vs tool word highlight with margin

torch.numel作用

Statistical learning method -- perceptron

Odoo集成Plausible埋码监控平台

PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()
Notification uses full resolution

Numpy -- epidemic data analysis case
随机推荐
【知识小结】PHP使用svn笔记总结
Laravel 中config的用法
企业级日志分析系统ELK
Introduction to pyGame games
Shader_ Animation sequence frame
Xcode Revoke certificate
leetcode 241. Different Ways to Add Parentheses 为运算表达式设计优先级(中等)
Performance measure of classification model
ThinkPHP URL 路由简介
leetcode 241. Different ways to add parentheses design priority for operational expressions (medium)
MySQL数据库基本操作-DQL-基本查询
Regular expression string
[flower carving experience] 15 try to build the Arduino development environment of beetle esp32 C3
Is it reliable to open an account on Tongda letter with your mobile phone? Is there any potential safety hazard in such stock speculation
Statistical learning method -- perceptron
Balanced binary tree (AVL)
Bidding announcement: 2022 Yunnan Unicom gbase database maintenance public comparison and selection project (second) comparison and selection announcement
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"?
laravel中将session由文件保存改为数据库保存
There are many ways to realize the pause function in JS