python學習筆記——壹

來源:互聯網
上載者:User

標籤:網址   span   分享   技術分享   ssl   linux   base   nload   需要   

安裝python3

windows 需要安裝 官網下載

linux      會內建  一般都是內建2的 用python3需要安裝 2和3是可以共存的

linux安裝python3教程:

1.

安裝 Python 依賴的第三方包
#yum install openssl-devel libxslt-devel -y

2.

Python 官網下載 python3 的源碼包,網址:https://www.python.org/downloads/release/python-360/

選擇 python3 的最新版本 python3.6.2

3.

解壓

[[email protected] home]#   tar -xvzf Python-3.6.2

[[email protected] home]#   cd   Python-3.6.2/

設定python安裝目錄 

[[email protected] Python-3.6.2]#  ./configure --prefix=/usr/python3

[[email protected] Python-3.6.2]# make

[[email protected] Python-3.6.2]# make install

[[email protected] bin]#               ln -s /usr/python3/bin/python3.6 /usr/bin/python3

現在輸入python3 可以正常使用

 輸入python   python2也可正常使用

 

 

 

寫好python代碼儲存成.py檔案

在執行的時候要添加許可權

chmod -R 755 new1.py

 

 使用pycharm

 

 

 

 

 

 


 break 結束迴圈

 

 

 

python學習筆記——壹

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.