PIP install and Python path

前端 未结 1 914
一生所求
一生所求 2021-02-07 15:46

I am using pip install on a mac to get my python requirements for a django website.

I got pip from MacPorts

port install pip-2.7

Now t

1条回答
  •  南方客
    南方客 (楼主)
    2021-02-07 16:03

    After a few attempts, setting the PYTHONPATH environmental var worked.

    Best way to achieve this is to add the following to the ~/.bash_profile:

    export PYTHONPATH=
    

    Don't forget to open a new terminal after changing.

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