D02 python3/pycharm/sublime test3安裝

Python 安裝

dba_aj@163.com
2018年8月25日星期六html

TOCjava


一、源碼安裝Python3.6

1.1 Centos6 源碼安裝python 3.6

# Centos6 依賴
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum clean all 
yum repolist 

$ yum groupinstall 'Development Tools'
$ yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make

1.2 Ubuntu16 源碼安裝python3

#ububtu依賴 
 apt install build-essential libssl-dev libevent-dev libjpeg-dev libxml2-dev libxslt-dev

#上傳安裝包
apt-get install lrzsz
cd /usr/local/src/
下載或者上傳python源碼安裝包
tar -xf Python-3.6.3.tar.xz -C /usr/local/src/


#安裝
mkdir /usr/local/python3 
./configure --prefix=/usr/local/python3
make ; make install 
Successfully installed pip-9.0.1 setuptools-28.8.0 #安裝完成時,提示還安裝了pip9.0.1


#pip3更新
# ./pip3 --version
pip 9.0.1 from /usr/local/python3/lib/python3.6/site-packages (python 3.6)

#pip 換源
下面有

#pip3更新
# ./pip3 install --upgrade pip

2. pip安裝和換源

2.1 安裝源碼Python直接帶了pip

2.2 centos 安裝pip3

yum install python-pip –y
yum -y install python-setuptools && easy_install pip && pip install --upgrade pip

2.3 ubuntu 安裝pip

#1.更新系統包
sudo apt-get update
sudo apt-get upgrade

#2.安裝pip
apt-get install python-pip

#3.安裝pip3
apt-get install python3-pip

2.4 pip換源

#linux下,修改 ~/.pip/pip.conf (沒有就建立一個), 修改 index-url至tuna,內容以下:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

#windows下,直接在user目錄中建立一個pip目錄,如:C:\Users\xx\pip,新建文件pip.ini,內容以下
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

2.5 安裝軟件

pip3 install ipythonpython

  • ipython集成了部分shell的功能,能夠之間使用linux命令和tab補齊等小功能,記錄輸入命令的條數等人性化的功能。
  • 其實底層去解釋python語句的時候,仍是調用python的。ipython至關於python的一個解釋器,交互工具。
  • 安裝了pip以後,安裝ipython很是簡單,肯定能聯網

    http://www.cnblogs.com/yuechaotian/archive/2013/06/03/3115472.htmlmysql

pip3 install requests
pip3 install paramiko
pip3 install pymysqllinux

3. pycharm 安裝註冊

3.1 window pycharm 安裝

安裝201803版本git

#編輯 C:\Windows\System32\drivers\etc\hosts, 添加如下
0.0.0.0 account.jetbrains.com
0.0.0.0 www.jetbrains.com

激活http://idea.lanyus.com/github

3.2 linux pycharm

安裝201803版本``
連接: https://pan.baidu.com/s/1btk7XL5xePznqE78eoDhgg 提取碼: szg8 複製這段內容後打開百度網盤手機App,操做更方便哦sql

複製到bin目錄下
對pycharm64.vmoptions,pycharm.vmoptions 最後添加文件路徑
-javaagent:/home/aj/program/pycharm-2018.3.2/bin/JetbrainsIdesCrack-3.4-release-enc.jar

4. sublime test3 安裝

4.1 安裝和激活

  1. 安裝略
  2. 激活 參考http://www.javashuo.com/article/p-rnkkinya-cq.html

windows : C:\Windows\System32\drivers\etc
mac: sudo vim /etc/hostsshell

127.0.0.1 license.sublimehq.com
127.0.0.1 45.55.255.55
127.0.0.1 45.55.41.223

4.2 package control

windows :json

  1. 下載連接: https://pan.baidu.com/s/1w_zgapKNSxHE297qW9XHfg 提取碼: 9958
  2. 複製Package Control.sublime-package 到目錄「Installed Packages」 [ Preferences-->Browse Packages --> 上一級Installed Packages
  3. 複製channel_v3.json到磁盤並配置目錄,Preferences > Package Settings > Package Control > Settings - User.
    或者添加這個
    "channels": ["https://raw.githubusercontent.com/HBLong/channel_v3_daily/master/channel_v3.json"],
{
 "bootstrapped": true,
 "channels": ["C:/Users/dba_a/AppData/Roaming/Sublime Text 3/json/channel_v3.json"],
 "installed_packages":
 [
  "Package Control"
 ]
}
{
 "bootstrapped": true,
 "channels": ["https://raw.githubusercontent.com/HBLong/channel_v3_daily/master/channel_v3.json"],
 "installed_packages":
 [
  "Package Control"
 ]
}

4.3 插件安裝

  1. SQL美化工具
ctrl + P --- install package -- SqlBeautifier
ctrl k,ctrl f
MAC: Command K + Command F
  1. 文件比較
1. 下載 https://www.sublimerge.com/packages/ST3/latest/Sublimerge%203.sublime-package
2. Go to Preferences > Browse Packages...
3. Go one folder up
4. Go to Installed Packages
5. Copy the package to that directory
6. Restart Sublime Text

4.4 setting

{
 "update_check": false,

}

<wiz_tmp_tag id="wiz-table-range-border" contenteditable="false" style="display: none;">

附件列表

相關文章
相關標籤/搜索