推荐学习书目
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 · May 31, 2015 · 5484 views
    This topic created in 4000 days ago, the information mentioned may be changed or developed.
    请看到朋友留下你们的脚印

    环境: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 replies    2015-05-31 20:22:43 +08:00
    cc7756789
        1
    cc7756789  
       May 31, 2015 via iPhone   ❤️ 2
    $ pip list 列出当前已安装的第三方库

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

    $ pip install -r requirements.txt 一键安装此文件中的所有库
    xdays
        2
    xdays  
       May 31, 2015   ❤️ 1
    回答一:pip install requests[security]
    回答二:其实我也没有注意到这个问题,但是我会用Google,http://stackoverflow.com/questions/18966564/pip-freeze-vs-pip-list,希望你以后也多用。
    回答三:已经包含在回答二里了。
    xueweihan
        3
    xueweihan  
    OP
       May 31, 2015
    谢谢你们的回答,使我受益匪浅!我一定要好好用google
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3241 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 14:05 · PVG 22:05 · LAX 07:05 · JFK 10:05
    ♥ Do have faith in what you're doing.