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
SimbaPeng
V2EX  ›  Python

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

  •  
  •   SimbaPeng · 2018-02-07 22:50:37 +08:00 · 2036 次点击
    这是一个创建于 2261 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    3 条回复    2018-02-08 02:59:50 +08:00
    est
        1
    est  
       2018-02-07 23:44:48 +08:00
    老的 venv 可以 --use-system-package 我记得。
    likuku
        2
    likuku  
       2018-02-07 23:58:54 +08:00
    venv 里难道不是直接就用 pip 了么?

    那就别用 venv 环境了,直接用 pyenv 好了。
    littlewey
        3
    littlewey  
       2018-02-08 02:59:50 +08:00 via iPhone
    venv 新版本都是默认 ignore 后安装的了 新环境是干净的也就是没有更新的。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3183 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:12 · PVG 22:12 · LAX 07:12 · JFK 10:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.