推荐学习书目
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
SimbaPeng
V2EX  ›  Python

python3 -m venv 创建的虚拟环境里默认安装 setuptools 模块为什么是旧版的?

  •  
  •   SimbaPeng · Feb 7, 2018 · 2537 views
    This topic created in 3106 days ago, the information mentioned may be changed or developed.

    另外,现在每次创建一个虚拟环境,我都要在虚拟环境里安装一次 flake8 和 yapf 模块,我的系统环境已经安装了这 2 个模块,有没有什么办法能不共享系统环境, 又能直接使用这 2 个模块?

    3 replies    2018-02-08 02:59:50 +08:00
    est
        1
    est  
       Feb 7, 2018
    老的 venv 可以 --use-system-package 我记得。
    likuku
        2
    likuku  
       Feb 7, 2018
    venv 里难道不是直接就用 pip 了么?

    那就别用 venv 环境了,直接用 pyenv 好了。
    littlewey
        3
    littlewey  
       Feb 8, 2018 via iPhone
    venv 新版本都是默认 ignore 后安装的了 新环境是干净的也就是没有更新的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3545 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:36 · PVG 12:36 · LAX 21:36 · JFK 00:36
    ♥ Do have faith in what you're doing.