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

关于 VENV, virtualenv 等工具的疑问

  •  
  •   ooleslie · Apr 30, 2020 · 5595 views
    This topic created in 2385 days ago, the information mentioned may be changed or developed.
    请教下,virtualenv, pipenv, venv, pdm, asdf,还有用 anaconda 作为管理,这些工具是不是懂一样就够了??
    我现在在用 venv,我理解是就管理包和环境两个功能,不知道对不对,因为有些工具是今天上论坛才知道的。掌握 venv 是不是就够了?

    ps:感觉花在工具和理解一些个人教程产生的一些误解费了好多时间啊,有没有朋友能介绍下心路历程啊,应该怎么处理这种东西比较实际?
    19 replies  •  2020-05-01 08:14:58 +08:00
    lhx2008
    lhx2008
    Apr 30, 2020❤️1
    1
    知道为什么要用,什么时候用。然后会用一个就可以了。
    ooleslie
    ooleslie
    OP
    Apr 30, 2020
    2
    @lhx2008 谢谢
    est
    est
    Apr 30, 2020 via Android❤️1
    3
    简单项目 venv,机器学习 miniconda 。打包部署直接复制库到 lib 目录改 pythonpath
    009694
    009694
    Apr 30, 2020
    4
    conda 好用啊 连 gcc 环境都能用 conda 管理 爽翻天
    ariussssss37
    ariussssss37
    Apr 30, 2020
    5
    记住一个就够了,conda 不错
    SjwNo1
    SjwNo1
    Apr 30, 2020
    6
    挑顺手的一个就够
    whitehack
    whitehack
    Apr 30, 2020
    7
    为什么你们说的这些名词一个都不认识.我是不是已经可以告别程序员了...
    whitehack
    whitehack
    Apr 30, 2020
    8
    妈蛋.入错帖了.原来是 python 主题下的..
    whitehack
    whitehack
    Apr 30, 2020
    9
    我才想起来.我是看楼主头像才点进来的
    renmu
    renmu
    Apr 30, 2020 via Android
    10
    包管理工具用个顺手的就行了
    threee333
    threee333
    Apr 30, 2020
    11
    @whitehack #9 老哥你要笑死我
    salamanderMH
    salamanderMH
    Apr 30, 2020
    12
    pipenv 就是个坑。
    rrfeng
    rrfeng
    Apr 30, 2020
    13
    python venv 和 virtualenv 只管理 python 依赖。
    conda 可以管理系统软件级别的依赖。
    frostming
    frostming
    Apr 30, 2020
    14
    试试看不用虚拟环境的包管理器吧

    https://github.com/frostming/pdm
    guyeu
    guyeu
    Apr 30, 2020
    15
    这堆包管理器一个比一个渣。。。学那干啥。。。多环境用 docker 管理不香吗
    ooleslie
    ooleslie
    OP
    Apr 30, 2020
    16
    @guyeu
    @frostming

    哥啊,我就是看了别人帖子下面这种留言才产生这个疑问。。。

    @frostming
    不用虚拟环境的包管理和用虚拟环境的包管理有啥区别?我是越整越迷啊
    HuberyPang
    HuberyPang
    Apr 30, 2020
    17
    virtualenvwrapper + virtualenv 配置好后,用着很舒服
    Virace
    Virace
    May 1, 2020 via Android
    18
    开发环境随意,部署环境 docker. 虽然我不会 docker,哈哈!但是都这么说从没这没开始学过
    formaxin
    formaxin
    May 1, 2020 via Android
    19
    本地用 poetry+pyenv 管理,上线用 docker
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2215 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 70ms · UTC 14:19 · PVG 22:19 · LAX 06:19 · JFK 09:19
    ♥ Do have faith in what you're doing.