pyvenv

Downgrade virtualenv to 2.7 from 3.5.3

两盒软妹~` 提交于 2019-12-22 12:52:16
问题 My virtualenv is currently configured to python 3.5.0 while the package I need to use only supports 2.7. I need a way of downgrading my python runtime to 2.7 within my virtualenv. I do have both versions available to use: First one is in my virtualenv, second is computer-wide. (project) me-Air:element me$ python -V Python 3.5.0 me-Air:element me$ python -V Python 2.7.10 回答1: You cannot "downgrade" virtualenv. You will have to create a new one, you don't necessarily need to delete your current

Why `pyvenv` does not install `python-config`?

ε祈祈猫儿з 提交于 2019-12-02 11:24:25
问题 I have run into this under MacOS (10.11), but have seen the same problem under various Linuxes as well. I installed the "official" Python3 package, it goes into /Library/Frameworks/Python.framework/Versions/3.4 . (Note: the examples below use Python 3.4, but the issue persists with 3.5 as well. I have no access to a machine that has Python 3.6 due to lack of admin privileges, should the issue have been solved in 3.6.) I need virtual environments and I need the python-config script to figure

Why `pyvenv` does not install `python-config`?

让人想犯罪 __ 提交于 2019-12-02 06:02:35
I have run into this under MacOS (10.11), but have seen the same problem under various Linuxes as well. I installed the "official" Python3 package, it goes into /Library/Frameworks/Python.framework/Versions/3.4 . (Note: the examples below use Python 3.4, but the issue persists with 3.5 as well. I have no access to a machine that has Python 3.6 due to lack of admin privileges, should the issue have been solved in 3.6.) I need virtual environments and I need the python-config script to figure out which libraries Python3 uses because my project combines Python and C++ code. If I set up the