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

Manually install third-party modules in windows

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

The powerful function of python is also reflected in the installation and use of third-party modules, which can be maintained by pip in the linux environment. In the windows environment, if you install it offline, you need to download it manually and install it yourself.

Environment: python 2.7 & Python 3.5

OS: windows 7

Step 1: first, make sure that the environment variables of the system are installed correctly, which contains the python path you installed, that is, you can run python directly in cmd.

Step 2: download the module you need, and then extract it. There should be a setup.py file in the directory.

Step 3: locate the directory of the files you extracted in cmd and run the following command:

Setup.py buildsetup.py install

Step 4: reopen the writing environment or rerun the program you need, and the import module checks to see if it is working properly.

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

Servers

Wechat

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

12
Report