码迷,mamicode.com
首页 > 编程语言 > 详细

python初识

时间:2018-06-04 00:53:55      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:python   pycharm   

yum安装python3.6
]#yum install python36 -y
]#mkdir /data/workspace
]#cd /data/workspace
]#python36 -m venv env1    ]#pyvenv-3.6 env1   #等价这个命令
]#cd /data/workspace/env1/bin/
]#. activate
(env1)[root@··]#python -m pip install --upgrade pip
(env1)[root@··]#python --version
Python 3.6.3

编译安装python36

]#yum groupinstall "Development Tools"
]#yum install openssl-devel -y
]#tar xf Python3.6
]#cd Python3.6
]#./configure --prefix=/usr/local/python36
]#make -j 4 && make install
···
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-9.0.3 setuptools-39.0.1

]#cd /usr/local/python36/bin
]#./python3.6 -m venv /data/env1
]#cd /data/env1/bin/
]#. activate
(env1)[root@··]#python -m pip install --upgrade pip
(env1)[root@··]#python --version
Python 3.6.5

安装pycharm

下载好pycharm

]#wget https://download.jetbrains.com/python/pycharm-community-2018.1.4.tar.gz
]#tar -xf pycharm-community-2018.1.4.tar.gz  -C /usr/local
]#cd /usr/local
]#mv pycharm-community-2018.1.4 pycharm20180104
]#cd pycharm20180104/bin/
]#./pycharm.sh

接受相关许可及主题风格选择

技术分享图片

选择pycharm的运行文件

技术分享图片

选择额外的文本编辑模式的配置,可以不选择

技术分享图片

python的环境配置

location:/root/PycharmProjects/venvs/env1

base interpreter: /usr/local/bin/python3.6

技术分享图片

下次可以直接用charm;命令调用pycharm

]#charm

开始python3&pycharm的愉快之旅吧!

python初识

标签:python   pycharm   

原文地址:http://blog.51cto.com/13698281/2124330

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!