全新macbook 安裝開發環境紀實

2021-10-10 04:45:43 字數 2231 閱讀 8220

第一步安裝xcode 如果不安裝,在安裝過程中提示git的時候,提示找不到程式,然後提示安裝xcode

安裝homebrew

官網

$ /bin/bash -c "$(

curl -fssl

"

mac安裝homebrew,解決443,防牆問題

解決方法:用國內源替換

安裝xcode

使用替換國內源的方式安裝homebrew,解決443不能訪問問題

安裝成功後

brew 命令 等同 yum apt-get

brew -v
安裝git

brew install

git

#建立目錄

makedir weixin

# 初始化 本地倉庫

git init

# 通過配置本地的git配置資訊,執行git config命令預先配置好相關的使用者資訊   雲倉庫 專案的設定有

git config --global user.name "你的名字或暱稱"

git config --global user.email "你的郵箱"

#新增遠端雲倉庫
git pull origin master

1,less: easy less

2.中文: chinese

4.**自動完成: wechet-snippet

5.格式美化:beautify 美化css less

按照python3.7

官方鏈結位址

python3.7 -v

返回:#python 3.7.3

安裝之後 發現 系統裡有個python3 版本是3.8

然後就刪除了3.7

# 檢視當前python版本

python3.7 -v

#刪除python3.7 framework

ls /library/frameworks/python.framework/versions/

sudo

rm -rf /library/frameworks/python.framework/versions/3.7

#刪除python3.7的應用目錄

sudo

rm -rf python\ 3.7 #python 3.7存在空格

#刪除/usr/local/bin目錄下指向的python3.7的鏈結

cd /usr/local/bin/

ls -l /usr/local/bin |

grep 『/library/frameworks/python.framework/versions/3.7』

# 檢視 安裝路徑

which python

做軟鏈結

安裝pip3

cd ~/downloads

curl -o get-pip.py

lspython3 get-pip.py

pip3 -v

安裝虛擬環境

按照pycharm

pycharm官方鏈結

community。社群版 做存python開發#for pure python development

professional 專業版 做科學和web開發 #for both scientific and web python development. with html, js, and sql support.

安裝nodejs。nmp

brew install node
一次安裝成功

npm -v

全新mac os建django開發環境

一 裝pip sudo easy install pip 二 裝mezzanine pip install mezzanine 三 裝brew,具體資訊看這裡 usr bin ruby e curl fssl 四 裝postgres brew install postgresql v 接下來就是初始...

macbook 安裝homebrew失敗

根據官網介紹的安裝方式 bin zsh c curl fssl qianjinyan qianjinyandemacbook pro bin zsh c curl fssl 開始執行brew自動安裝程式 cunkai.wang foxmail.com 2021 01 26 11 18 56 11.1...

安裝c c 開發環境

linux的c c 開發環境包括 gcc gnu c 編譯器 g gnu c 編譯器 libc6 gnu c 庫 開發庫和標頭檔案 make make工具的gnu版本 ubuntu預設是沒有安裝的,包build essential用於建立c c 開發 環境,有兩種方式可以選擇 lupa開源社群em ...