In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to solve the problem of Python packaging". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. What if the download is slow? In order to speed up the download speed, some large domestic manufacturers have mirrored pypi (the resource server that stores the third python package). For example, Douban is commonly used. We only need to specify the address of Douban source during installation, for example: # install flask
Pip-I http://pypi.douban.com/simple install Flask-- trusted-host pypi.douban.com makes it very fast. You can also write url to the pip configuration file so that you don't need to specify the source address each time you execute pip.
Write the following to the pip.ini file [global]
Trusted-host = pypi.douban.com
Index-url = http://pypi.douban.com/simple2, what if the installation fails? Many people use Windows for development, including me, and there are many problems with using Windows,Windows half the time, such as the problem that the package cannot be installed properly. Perhaps the most common problem you encounter is to install the MySQL driver.
(you can click on the picture to enlarge the error. You must have encountered it.)
Why is it so difficult to install a package?
Programming is like playing monster upgrade, there will always be all kinds of problems, but as long as you don't give up, there is always a way to meet the last big boss, and the pit you encounter has already been stepped on. All packages that cannot be properly installed by Windows can be solved through the following website
For example, the MySQ driver package should have more than 2.7 and 64-bit versions, including 32-bit and 64-bit. 3, how to install the first step: open the website: https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python (this site must be a good collection) step 2: download the corresponding version of the whl file step 3: pip install mysqlclient-1.4.6-cp37-cp37m-win32.whl is done! Finally, what if the package you want to download is found on this site? For example, the library mitmproxy can not be successfully installed directly with pip? The reason why it can not be installed is that some of the libraries it depends on do not support direct pip installation. It can be solved by finding the corresponding whl file on this website in advance to install it. When I installed mitmproxy, I made an error in installing brotlipy. This library can just be found on the website https://www.lfd.uci.edu. This is the end of the content of "how to solve the problem of Python packaging". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.