这是一个创建于 4392 天前的主题,其中的信息可能已经有所发展或是发生改变。
如题。
我使用 Macport 安装了包后,在 cmd 中还是找不到该命令,请教一下,如何才能执行?
网上看到有太多的安装方法,我就想知道用 macport 怎么装。但对于 macport 安装了包后如何执行还没找到文档提到,或者我看不懂,我不会设 mac 系统的 path,也不敢确定 pip 和 ipython 的 bin 现在到底在哪,应该把哪个目录加进去?
我感觉没人提这种问题,只能说明这个问题是显而易见的,或者是常识。
2 条回复 • 1970-01-01 08:00:00 +08:00
|
|
1
Hualin 2012-10-05 08:28:06 +08:00
还有 我注意到 port installed 命令后有 py27-nose 这个包,我在 python 下执行测试用例仍然蹦出 找不到 nose 这个包,说明 python 解释器找不到 macport 安装的包。肯定有那个目录或者命令我遗漏了。
|
|
|
2
Livid 2012-10-05 08:34:04 +08:00
MacPorts 安装的 Python 位于 /opt/local/bin/python2.7
如果你想使用 MacPorts 版本的 Python,你需要执行:
sudo port select python python27
|