当前位置:网站首页>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 remotesigned
Set 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
边栏推荐
- 【Android -- 数据存储】使用 SQLite 存储数据
- Limit of total fields [1000] in index has been exceeded
- 95. (cesium chapter) cesium dynamic monomer-3d building (building)
- MySQL中, 如何查询某一天, 某一月, 某一年的数据
- Unity3D_ Class fishing project, control the distance between collision walls to adapt to different models
- Dotween -- ease function
- IP地址和物理地址有什么区别
- Shader_ Animation sequence frame
- Introduction to ThinkPHP URL routing
- 分步式监控平台zabbix
猜你喜欢
Eye of depth (VI) -- inverse of matrix (attachment: some ideas of logistic model)
Numpy --- basic learning notes
Continuous creation depends on it!
Step by step monitoring platform ZABBIX
What are compiled languages and interpreted languages?
Multiplication in pytorch: mul (), multiply (), matmul (), mm (), MV (), dot ()
【Vulnhub靶场】THALES:1
Sysom case analysis: where is the missing memory| Dragon lizard Technology
Apache Doris just "graduated": why should we pay attention to this kind of SQL data warehouse?
Xcode Revoke certificate
随机推荐
[vulnhub range] thales:1
laravel 是怎么做到运行 composer dump-autoload 不清空 classmap 映射关系的呢?
MySQL中, 如何查询某一天, 某一月, 某一年的数据
Iptables only allows the specified IP address to access the specified port
安科瑞电网智能化发展的必然趋势电力系统采用微机保护装置是
You Yuxi, coming!
Laravel service provider instance tutorial - create a service provider test instance
"The" "PIP" "entry cannot be recognized as the name of a cmdlet, function, script file, or runnable program."
强化实时数据管理,英方软件助力医保平台安全建设
Logback日志框架第三方jar包 免费获取
记一次项目的迁移过程
Strengthen real-time data management, and the British software helps the security construction of the medical insurance platform
IP地址和物理地址有什么区别
Bidding announcement: Fujian Rural Credit Union database audit system procurement project (re bidding)
华东师大团队提出,具有DNA调控电路的卷积神经网络的系统分子实现
Regular expression string
Aerospace Hongtu information won the bid for the database system research and development project of a unit in Urumqi
Power of leetcode-231-2
logback.xml配置不同级别日志,设置彩色输出
Shandong old age Expo, 2022 China smart elderly care exhibition, smart elderly care and aging technology exhibition