首页 > 编程语言 > 详细

Python pip easy_install源配置

时间:2016-01-30 02:08:41      阅读:274      评论:0      收藏:0      [点我收藏+]

自己搭建类似pypi源的服务器

先安装httpd

使用httpd监控python库目录simple

在网页能打开服务器ip:port能看到python库文件

ip为服务器ip,port为httpd监控python目录的端口

pip

    ~/.pip/pip.conf --linux

  %HOMEPATH%\pip\pip.ini --window

[global]
index-url = http://ip:port/simple
trusted-host=ip

 

easy_install

~/.pydistutils.cfg --linux

%HOMEPATH%\pydistutils.cfg --window

[easy_install]
index_url = http://ip:port/simple

临时配置
easy_install -i http://ip:port/simple fabric
pip -i http://ip:port/simple fabric

Python pip easy_install源配置

原文:http://www.cnblogs.com/jachin/p/5170129.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!