In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to solve the TypeError: 'os.stat_result' object is not callable problem under the Django project". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to solve the TypeError:' os.stat_result' object is not callable problem under the Django project"!
How to solve the problem of "TypeError: 'os.stat_result' object is not callable" after the execution of the Django project under PyCharm in 5 seconds
Nonsense, straight to the topic reason ~ first of all, after we create the django project under PyCharm, there appears TypeError: 'os.stat_result' object is not callable, as shown in the figure.
So how to solve the problem in the above picture? if you are a senior technical specialist, you may know how to modify the Bug for a long time, or change the parameters of the code block. But if you are a beginner and don't know how to solve the problem, I recommend the following solution: the operation is actually very simple. Copy the blue font in the picture and search it in the specified directory on your computer. C:\ Users\ Administrator\ AppData\ Local\ Programs\ Python\ Python37-32\ Lib find "pathlib.py".
Premise: your computer needs to install another Python3.6 interpreter, if you think this version is too old, you can re-install the current interpreter you use a new one (my current version is Python3.7.4, which is also the version I use, because this version I installed a lot of library files and modules, so I do not want to reinstall, because I am afraid that the library files have to be lost. Personal advice: if you want to install the same version of python3x as you, you can install it on another computer, and then find the corresponding file pathlib.py). Copy the pathlib.py in Python3.6 to the current version directory you want to change. I will rename the pathlib.py in version 3.7.4 to pathlib2019 (or any other name is OK), and then paste the pathlib.py in version 3.6. As shown in the figure, rerunning the Django file can run normally and click on the blue server connection. If it is shown to be successful, the installation is successful, which echoes the problems mentioned earlier in this article.
Thank you for your reading. The above is the content of "how to solve the problem of TypeError: 'os.stat_result' object is not callable under the Django project". After the study of this article, I believe you have a deeper understanding of how to solve the problem of TypeError:' os.stat_result' object is not callable under the Django project, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.