当前位置:网站首页>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
边栏推荐
- 深度之眼(七)——矩阵的初等变换(附:数模一些模型的解释)
- PHP中exit,exit(0),exit(1),exit(‘0’),exit(‘1’),die,return的区别
- prometheus api删除某个指定job的所有数据
- SPI master rx time out中断
- 预测——灰色预测
- How does geojson data merge the boundaries of regions?
- A JS script can be directly put into the browser to perform operations
- Unity drawing plug-in = = [support the update of the original atlas]
- Three singleton modes of unity (hungry man, lazy man, monobehavior)
- Unity的三种单例模式(饿汉,懒汉,MonoBehaviour)
猜你喜欢

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

Rongyun won the 2022 China Xinchuang digital office portal excellence product award!

Xcode Revoke certificate

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

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

Leetcode-231-2的幂

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

Enterprise log analysis system elk

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

torch. Numel action
随机推荐
Bidding announcement: 2022 Yunnan Unicom gbase database maintenance public comparison and selection project (second) comparison and selection announcement
47_ Contour lookup in opencv cv:: findcontours()
【Android -- 数据存储】使用 SQLite 存储数据
Enterprise log analysis system elk
Laravel service provider instance tutorial - create a service provider test instance
PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()
Laravel5.1 Routing - routing packets
Aerospace Hongtu information won the bid for the database system research and development project of a unit in Urumqi
企业级日志分析系统ELK
统计学习方法——感知机
Laravel constructor and middleware execution order
【HCSD大咖直播】亲授大厂面试秘诀-简要笔记
Leetcode-136-只出现一次的数(用异或来解答)
[summary of knowledge] summary of notes on using SVN in PHP
Rongyun won the 2022 China Xinchuang digital office portal excellence product award!
What else can an ordinary person do besides working in a factory to make money?
记一次项目的迁移过程
There are many ways to realize the pause function in JS
iptables只允许指定ip地址访问指定端口
What about the pointer in neural network C language