Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that pycharm needs to re-import modules to build a new project

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "how to solve the problem of re-importing modules needed to build new projects in pycharm". In daily operation, I believe many people have doubts about how to solve the problem of re-importing modules in building new projects in pycharm. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the question of "how to solve the problem that pycharm needs to re-import modules to build a new project"! Next, please follow the editor to study!

At the beginning, I thought that this file was just some configuration, that is, it included all the configurations of this project. Well, every time we built a new project, we would import the module situation. What's the difference between opening the original project and opening the original project? is this .idea file missing? yes, in this way, the configuration of our imported module will also be in it. Is this the crux of the problem? the configuration file, we continue to think. So does this file need to be modified? I think it needs to be modified, but we might as well try copying and pasting this file into a folder first.

Start the formal steps

Let's copy this file to one of your folders.

We can see that there is no .idea file in this. When we open this folder with pycharm, we find that we need to import the module.

Let's copy and paste the .idea files from other established projects into this folder, and I copied the .idea files from python Learning this project.

Reopen pycharm after copying and pasting (why reopen it, because when you import the package, you will be released and unable to operate. Anyway, mine can't be operated.

And then it's like this, you don't have to import the package (remember the project file we copied, yes, it's pythoh learning, so now this file shows python learning, in fact, when I built the project, it was named python learning).

We also saw anacodna, but it was not found in the actual folder, so the problem was solved.

Let's continue to think about whether this python study can be changed.

First of all, I opened .idea, in which there is a python to learn .iml file, I renamed, opened the project instantly messed up, immediately changed back, and then opened other files to make some changes, never succeeded, the time problem did not continue to make trouble.

At this point, the study on "how to solve the problem of how to build a new project in pycharm needs to re-import modules" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report