Why virtualenv relies on the global python instead of the local one, after being pulled?

前端 未结 1 2009
-上瘾入骨i
-上瘾入骨i 2021-01-28 09:26

I pulled (git) a python project which was created (by me on another computer) using virtualenv. So, the python library is actually in a local directory (e.g., fila_env/bin

1条回答
  •  离开以前
    2021-01-28 10:06

    1. You cannot and you shouldn't, If I use 32-bit Linux and your virtualenv has been created on 64-bit Windows (or vice versa) your python binary certainly will not work for me.

    2. Again, no. virtualenv is a developer's tool, not a distribution tool. For distribution you should consider sdist/egg/wheel, or creating platform-dependent binaries with PyInstaller, py2exe or similar tools.

    0 讨论(0)
提交回复
热议问题