How to add virtualenv to path

前端 未结 9 919
无人及你
无人及你 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:52

    My idea is to add your virtualenv position to the BASH PATH

    export PATH=$PATH:/usr/local/python2.7/bin Or change your position

    0 讨论(0)
  • 2020-12-09 04:54

    I solved it by: At first find out it located at /usr/local/python3 and then I fix it by the command: ln virtualenv /usr/local/bin/virtualenv

    0 讨论(0)
  • 2020-12-09 04:59

    It seems that I myself am the exception to the rule for almost all 'simple' installation procedures. For some reason, it WAS a path related issue:

    I ran brew info python, which outputted a lot of information. At the bottom I found this:

    Executable python scripts will be put in:
    /usr/local/share/python
    so you may want to put "/usr/local/share/python" in your PATH, too.
    

    I added that to my PATH in /etc/launchd.conf and ~/.bashrc and lo and behold:

    $ which virtualenv 
    

    tells me:

    "/usr/local/share/python/virtualenv"
    

    I still don't know why I couldn't find any pointers in the right direction, online, anywhere? Is pip install virtualenv supposed to add to the PATH itself? If so, why not on my system? Why did @bibhas tell me explicitly it was not a path issue?

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