[英]Shifting packages between different versions of python
My mac has two versions of Python, 我的Mac有两个版本的Python,
one installed in /Library/Frameworks/Python.framework/Versions/2.7/bin/pip
一个安装在/Library/Frameworks/Python.framework/Versions/2.7/bin/pip
and the other /Library/Python/2.7/site-packages/
和其他/Library/Python/2.7/site-packages/
I have plenty of packages installed in the second directory. 我在第二个目录中安装了很多软件包。 How do I move all those packages under the first python ? 如何在第一个python下移动所有这些软件包?
Also How do I force my mac to use the first Python ? 另外,如何强制Mac使用第一个Python?
Typically on a Mac you would expect to find: 通常,在Mac上,您会期望找到:
You should never touch the first, so the second exists to add local libraries. 您永远不要碰第一个,因此第二个存在以添加本地库。 What problem are you trying to solve by moving libraries? 您要通过移动库来解决什么问题?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.