In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "the method of building pip source server by devpi". In the daily operation, I believe that many people have doubts about the method of building pip source server by devpi. The editor has consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how devpi builds pip source server". Next, please follow the editor to study!
The company's devpi server was cleaned, the devpi service was rebuilt, and recorded.
Installation
Pip install devpipip intall devpi-serverpip install devpi-web
Server initialization
Devpi-server-serverdir=/data/devpi-init
Server start
Write the configuration file devpi-settings.yaml:
The devpi-server: serverdir: / data/devpi host: 0.0.0.0 port: 314 startup command specifies-- serverdir. Although it is written in the configuration file, it doesn't work properly. I don't know why the package of python and the information synchronized to the image source are saved in # serverdir. Devpi-server-- serverdir=/data/devpi-c / path/to/devpi-settings.yaml-- start
Modify root password
Devpi use http://127.0.0.1:3141devpi login root-when password='' # server initializes, a root user is created. Password defaults to empty devpi user-m root password=1234 # to modify the root user password
Modify the default image source address
The official image source address used by devpi by default, which is slow and unstable, is modified to Douban source.
# pypi indexes are created by default, and python public modules synchronize and download devpi index pypi type=mirror mirror_url= https://pypi.douban.com/simple mirror_web_url_fmt= https://pypi.doubanio.com/simple/{name}/ from this index
Create a custom index
Create a custom index to support the source on the module you developed.
# bases this configuration is very important, it inherits the pypi index, when installing modules in the private network, first look for package from custom, and then go to pypi to find # it takes into account both the installation of private modules and online public modules devpi index-c custom volatile=False bases=root/pypi
Configure nginx
You can configure the nginx proxy devpi server service. It is more convenient to use an internally accessed domain name than to remember the ip port, such as pypi.custom.com. I won't go into details.
Upload the module developed by yourself to devpi server
Devpi use http://pypi.custom.comdevpi login root-- password=1234devpi use root/customdevpi upload # executes under the project directory
After the upload is completed, the browser visits http://pypi.custom.com, and under the custom index directory, you can see the uploaded package.
At this point, the study on "devpi's method of building pip source server" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.