How to add virtualenv to path

前端 未结 9 980
无人及你
无人及你 2020-12-09 04:01

I am trying to find out why my virtualenv and/or virtualenv wrapper - installed using pip using homebrew - cannot be foun

9条回答
  •  没有蜡笔的小新
    2020-12-09 04:44

    (Mac / Linux specific) So I got an error message when I did a pip3 install --user --upgrade virtualenv telling me that I did not have Users/home/Library/Python/3.7/bin in my PATH. So I simply added it.

    If this is on the Mac, the following did it for me

    vi ~/.bash_profile
    
    
    
    PATH="/Users/home/Library/Python/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
    

    restart your terminal and type virtualenv env and that should do it.

提交回复
热议问题