Running non-system Python with virtualenv in 32bit mode on OS X

前端 未结 1 642
轻奢々
轻奢々 2021-02-14 01:16

Short Question
Using virtualenv / virtualenvwrapper is it possible to add a prefix to the python call that linked to a specific virtual environ

1条回答
  •  暖寄归人
    2021-02-14 01:48

    Adding an alias to your activate script, and activating your virtualenv each type you want to use it.

    $ cd env32
    $ echo "alias python='arch -i386 python'" >> bin/activate
    $ source bin/activate
    $ python myscript.py
    

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