"What if you can't install packages into the global site-packages directory? For instance, on a shared host.
In all these cases, virtualenv can help you. It creates an environment that has its own installation directories, that doesn't share libraries with other virtualenv environments (and optionally doesn't access the globally installed libraries either)."
正如Alko所提到的,您需要root权限才能写入pip存储包的目录。在
您可以键入:
在终端中,然后键入:
^{pr2}$或者,您可以使用virtualenv:
基本上,它将允许您为每个python项目创建独立的环境,并允许您回避您的权限问题。在
有关详细说明,请参见:Installing Python on Mac OS X: virtualenv
相关问题 更多 >
编程相关推荐