最新 分享

為你發布最新的資訊和想法

Popular Articles

Recent Stories

控制macOS的开机启动

There is no translation available.

Mac开机启动的配置与其他类Unix系统相比较麻烦,Linux配置rc.local文件即可。
macOS系统上开机启动这个叫法不准确,应该叫“自启动”或者“登录时启动”。macOS上启动项可分为登陆项(Login Items)和启动项(Startup Items)。Login items在用户登录后立即启动并一直运行,直到用户退出登录或者手动终止才会停止运行。Startup items苹果官方不推荐再使用,Startup items在系统装载的最后阶段启动。

App 在macOS Catalina下提示已损坏无法打开的解决办法

There is no translation available.

在Terminal:
sudo xattr -r -d com.apple.quarantine /Applications/xxxx.app

安装odoo openerp时出现python setup.py egg_info

There is no translation available.

由于用homebrew安装了python2和python3,

在运行pip install -r requirement.txt时出现以下错误:

在MacOS下同时安装Python 2 和 3,并设置默认使用的版本

There is no translation available.

#Python 命令

  • 系统默认使用python2,使用brew可安装python3
  • python --version:查看python2版本

MacOS下 homebrew update 失败,提示路径不可写

There is no translation available.

运行 brew update 之后,

提示:

You should probably change the ownership and permissions of /usr/local

back to your user account.

sudo chown -R $(whoami):admin /usr/local

Macbook 修改 hosts

There is no translation available.

最近要上TensorFlow发现被墙,

安装Mac OS包管理工具Brew

There is no translation available.

Brew 官网:brew.sh

先安装Xcode

Mac终端界面显示优化

There is no translation available.

编辑 ~/.bash_profile

添加一行:

PS1=" → "

这一句是修改终端的提示,默认那个提示会显示当前用户,所在的目录等等,我发现这些东西也没什么用,太乱,所以,就直接使用一个 → 来表示。