V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · 2520 views
    This topic created in 2932 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   ·   Solana   ·   5086 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 08:18 · PVG 16:18 · LAX 01:18 · JFK 04:18
    ♥ Do have faith in what you're doing.