分享

FIX: SUDO: PORT: COMMAND NOT FOUND

 dzh1121 2016-03-14

I’m trying to setup Python 2.7 and SciPy and hit a major roadblock. I kept getting
sudo: port: command not found

On Mac OSX, I’m on Yosemite, if you’ve installed MacPorts with the package installer and have the same issues that I encountered I’ve got the fix. Part of the problem is that MacPorts binaries are installed in /opt/local/bin, so you just need to add this path to your PATH environment variable. Example with your user, add to your $HOME/.profile:

Add the following in terminal —

Step one:

export PATH=$PATH:/opt/local/bin

Step two:

$ source .profile

Step three:

sudo port -v selfupdate

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多