In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Pycharm terminal to enable virtual environment example analysis, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
When you create a new project, select New Virtual Environment
After the project is opened, the terminal is started, but it is often found that the virtual environment is not opened, resulting in some packages being installed in the global environment.
One solution is to open the virtual environment manually
If there is an error in opening, such as "disable script running" or do not recognize commands, open powershell as an administrator, and then run the following command
Set-executionpolicy remotesigned
Just set it to "y"
But at this point, if you want to shut down the virtual environment with a command
It is found that it often has no effect, and it is necessary to manually close the terminal and then open it before shutting down the virtual environment.
Various reasons have not been studied in detail (only then it should be a permission problem), but after testing, if the terminal is replaced with cmd, there will be basically no above problems.
When you open a project, the virtual environment is opened by default
The command to open and close the virtual environment works properly
The replacement mode is "File-settings-Tool-Terminal"
At this point, close the terminal in the project, and then open it, and you will use the cmd terminal.
But it is important to note that:
For existing projects, even if you change the terminal to cmd and open it again, the open environment may not take effect.
There is no problem with the new project created.
In addition, try not to create projects in Chinese directories.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.