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

macOs 下 pipenv 创建的虚拟环境 Python ,在全局环境的 Python 升级之后就报错了?

  •  
  •   SimbaPeng · Apr 19, 2018 · 2770 views
    This topic created in 3084 days ago, the information mentioned may be changed or developed.

    我用 pipenv 创建了一个虚拟环境,前段时间还用得好好的,最近用 homebrew 升级了下软件,刚好 python 也从 3.6.4 升级到了 3.6.5,之后就发现 pipenv 创建的虚拟环境的 python 不能用了。报错如下:

    dyld: Library not loaded: @executable_path/../.Python Referenced from: /Users/simbapeng/.local/share/virtualenvs/img_process-PtKFY7J-/bin/python Reason: image not found [1] 50112 abort img_process-PtKFY7J-/bin/python --version

    1 replies  •  2018-04-20 07:52:05 +08:00
    shootsoft
        1
    shootsoft  
       Apr 20, 2018 via iPhone
    如果我没记错的话,虚拟环境默认是 softlink,虚拟环境中只是把依赖的包装到了当前目录下。可执行文件仍然是系统下的那个。你看看创建虚拟环境的时候是不是有参数控制。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   856 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 20:37 · PVG 04:37 · LAX 13:37 · JFK 16:37
    ♥ Do have faith in what you're doing.