In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces how PyCharm can not be imported into the third-party library, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Urllib3 is a powerful, well-organized Python library for HTTP clients. If we find that the urllib3 library cannot be used in a new project in the Pycharm editor, we can do the following:
The error message is as follows:
We can't find this urllib3 file in the lib site-packages of the pycharm project either.
So, let's move on:
1, first confirm whether urllib3 has been installed on the computer, if not, then through the cmd command inside: pip install urllib3 to install.
If the installation is successful, the urllib3 folder will exist in the Lib\ site-packages in the Python program installation directory. For example, my address is: C:\ Users\ Administrator\ AppData\ Local\ Programs\ Python\ Python37\ Lib\ site-packages\ urllib3
2. When creating a new program, check to inherit the global package. Inherit global site-packages
3. At this time, we can open the class package of the project and see it.
At this time, we can find that there is one more class package, a total of two site-packages.
Open the last site-packages and you can see that the urllib3 import is successful.
Then let's take a look at the code:
There are no red wavy lines.
About how PyCharm can not import third-party libraries to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.