In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to solve the problem that pip installation always fails, which can be used for reference by interested friends. I hope you can learn a lot after reading this article.
Preface
It is said that pip install XX will install what it wants to install, why not to me?
Is Python messing with me?!
No, no,
Because the download server is abroad, so the network speed is very slow, if you don't pay attention, you will make a mistake.
What are we going to do?
Here I will teach you three methods. If you make a mistake in the future, you will not be afraid.
Image installation
Since the network speed of foreign servers is not good, is there a server that can be downloaded at home?
Of course there is!
Tsinghua University has a mirror address: https://pypi.tuna.tsinghua.edu.cn/simple, as long as you add "- I URL", you can switch to the designated download address.
For example, if you need to download and install the turtle library, you can write:
Pip install-I https://pypi.tuna.tsinghua.edu.cn/simple turtle
WHL file installation
What if the above method doesn't work?
For example, there is no corresponding version of the Flask-SQLAlchemy library in China, so what if we can only download and install it from abroad?
There's a way, but it's troublesome.
First of all, to download the specified .whl file from the official website (https://pypi.org/project/), search for Flask-SQLAlchemy after entering the official website, select the latest version and click, you can see the following files in the Downloadfiles section:
After downloading, switch to the installation package folder and enter "pip install library name", such as:
Pip install Flask-SQLAlchemy-2.4.4.tar.gz
The second is special. What if pip is not installed? For example, it was deleted by mistake, or uninstalled successfully but failed to install during the update.
Open the command line and change to the folder containing setup.py
Enter pip-V for testing after installation.
Thank you for reading this article carefully. I hope the article "how to solve the problem that pip installation always fails" shared by the editor will be helpful to everyone. At the same time, I also hope you can support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.