日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

pypi服务器搭建

發布時間:2023/12/29 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 pypi服务器搭建 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

pypi服務器搭建

[root@localhost ~]# hostnamectl set-hostname --static pypi-server [root@pypi-server ~]# yum -y install epel-release.noarch # 安裝pip需要epel源 [root@pypi-server ~]# yum -y install python-pip [root@pypi-server ~]# pip install pypiserver # 安裝pypiserver [root@pypi-server ~]# useradd pypi [root@pypi-server ~]# mkdir /usr/local/pypi/packages -p # 創建一個pypi存放python代碼的目錄 [root@pypi-server ~]# chown pypi.pypi /usr/local/pypi -R [root@pypi-server ~]# cd /usr/local/pypi/packages/ [root@pypi-server packages]# vim setup.py from setuptools import setupsetup(name='maytest',version='0.0.1',packages=['maytest'] )[root@pypi-server ~]# pypi-server -p 8080 /usr/local/pypi/packages/ # 加上&就可以后臺啟動了 192.168.57.1 - - [14/Jul/2020 03:56:17] "GET / HTTP/1.1" 200 1017 192.168.57.1 - - [14/Jul/2020 03:56:17] "GET /favicon.ico HTTP/1.1" 404 718# 瀏覽器訪問192.168.57.123:8080,就會顯示如下的界面,pypi服務啟動成功 Welcome to pypiserver! This is a PyPI compatible package index serving 0 packages.To use this server with pip, run the following command:pip install --index-url http://192.168.57.123:8080/simple/ PACKAGE [PACKAGE2...]To use this server with easy_install, run the following command:easy_install --index-url http://192.168.57.123:8080/simple/ PACKAGE [PACKAGE2...]The complete list of all packages can be found here or via the simple index.This instance is running version 1.3.2 of the pypiserver software.

總結

以上是生活随笔為你收集整理的pypi服务器搭建的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。