可能重複:
What are site-packages in python and can you install/use them if you aren’t root?我需要安裝Python包的根
sudo apt-get install pip
creating /usr/local/lib/python2.7/dist-packages/boto
error: could not create '/usr/local/lib/python2.7/dist-packages/boto': Permission denied
pip install boto
修改/usr/local/bin
下包在Ubuntu的框。這是它應該工作的方式嗎?
您不必安裝的virtualenv的根。例如,如果你用'pip --user'來安裝它,你只需要在你的'PATH'中添加'〜/ .local/bin'。 –