请问 virtualenv 激活后,用 pip freeze 查看安装了什么包,有 InsecurePlatformWarning 警告。 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
xueweihan
V2EX    Python

请问 virtualenv 激活后,用 pip freeze 查看安装了什么包,有 InsecurePlatformWarning 警告。

  •  
  •   xueweihan
    521xueweihan 2015 年 5 月 31 日 5327 次点击
    这是一个创建于 3889 天前的主题,其中的信息可能已经有所发展或是发生改变。
    请看到朋友留下你们的脚印

    环境:python 2. 7.6
    virtualenv 版本:virtualenv==13.0.1
    urllib3版本:urllib3==1.7.1

    InsecurePlatformWarning:A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail.
    翻译:一个真正的SSLContext对象不可用。这可以防止从urllib3适当配置SSL并可能导致某些SSL连接失败。

    问题一:为什么会出现上面的问题,如何解决呢?
    问题二:pip freeze指令 和pip list指令有什么区别。 我安装了distribute,在freeze指令下看不到,在list指令下就可以看到。为什么呢?
    问题三:如果感觉我的提问有问题,告诉我我一定改正。我刚习惯于登陆V2EX,但是还不大明白发帖的规矩
    3 条回复    2015-05-31 20:22:43 +08:00
    cc7756789
        1
    cc7756789  
       2015 年 5 月 31 日 via iPhone   2
    $ pip list 列出当前已安装的第三方库

    $ pip freeze > requirements.txt 把当前已安装的第三方库的名字重定向到一个文件中

    $ pip install -r requirements.txt 一键安装此文件中的所有库
    xdays
        2
    xdays  
       2015 年 5 月 31 日   1
    回答一:pip install requests[security]
    回答二:其实我也没有注意到这个问题,但是我会用Google,http://stackoverflow.com/questions/18966564/pip-freeze-vs-pip-list,希望你以后也多用。
    回答三:已经包含在回答二里了。
    xueweihan
        3
    xueweihan  
    OP
       2015 年 5 月 31 日
    谢谢你们的回答,使我受益匪浅!我一定要好好用google
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     3140 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 23ms UTC 13:41 PVG 21:41 LAX 05:41 JFK 08:41
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86