您好,登錄后才能下訂單哦!
今天就跟大家聊聊有關怎么在Centos中部署Python,可能很多人都不太了解,為了讓大家更加了解,小編給大家總結了以下內容,希望大家根據這篇文章可以有所收獲。
sudo adduser newuser sudo passwd newuser # 設置授權不需要輸入密碼 sudo /usr/sbin/visudo newuser ALL=NOPASSWD: ALL
參考文檔
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm sudo rpm -Uvh epel-release-6*.rpm
包地址
wget http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-13.ius.centos6.noarch.rpm sudo rpm -Uvh ius-release-1.0-13.ius.centos6.noarch.rpm
sudo yum install python27 sudo yum install python27-devel then curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | sudo /usr/bin/python2.7 - # pip curl https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py | sudo /usr/bin/python2.7 - extra: install python3 sudo yum install python34u python34u-devel
sudo pip install virtualenv
ssh-keygen -t rsa add ~/.ssh/id_rsa.pub to git or github
sudo yum install git
sudo yum install mysql sudo yum install mysql-devel* -y sudo yum install mysql-server sudo /sbin/service mysqld start
sudo yum install redis
sudo yum install rabbitmq-server
[Errno 14] Peer cert cannot be verified or peer cert invalid
add "sslverify=false" in /etc/yum.conf
pip error: ImportError: cannot import name HTTPSHandler
yum install openssl openssl-devel -y
see in sof
MySQL-python
_mysql.c:2642: error: initializer element is not constant
_mysql.c:2642: error: (near initialization for ‘_mysql_ResultObject_memberlist[0].offset')
_mysql.c: In function ‘_mysql_ConnectionObject_getattr':
_mysql.c:2666: error: ‘_mysql_ConnectionObject' has no member named ‘open'
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/data/home/alarm/env/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-HgXAQT/MySQL-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-kx2cSu-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-HgXAQT/MySQL-python
處理: yum install mysql-devel
Python是一種跨平臺的、具有解釋性、編譯性、互動性和面向對象的腳本語言,其最初的設計是用于編寫自動化腳本,隨著版本的不斷更新和新功能的添加,常用于用于開發獨立的項目和大型項目。
看完上述內容,你們對怎么在Centos中部署Python有進一步的了解嗎?如果還想了解更多知識或者相關內容,請關注億速云行業資訊頻道,感謝大家的支持。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。