How do I add a path to PYTHONPATH in virtualenv

后端 未结 5 1219
渐次进展
渐次进展 2020-11-27 09:29

I am trying to add a path to the PYTHONPATH environment variable, that would be only visible from a particular virtualenv environment.

I tried SET PYTHONPATH=

5条回答
  •  不知归路
    2020-11-27 10:13

    If you're using virtualenv, you should probably also be using virtualenvwrapper, in which case you can use the add2virtualenv command to add paths to the Python path for the current virtualenv:

    add2virtualenv directory1 directory2 …

提交回复
热议问题