How do I add a path to PYTHONPATH in virtualenv

后端 未结 5 1215
渐次进展
渐次进展 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:03

    If you are using virtualenvwrapper,

    $ cd to the parent folder
    $ add2virtualenv  folder_to_add
    

    console will display

    Warning: Converting "folder_to_add" to "/absoutle/path/to/folder_to_add"
    

    That's it, and you should be good to go

提交回复
热议问题