大前端

前端学习之家-大前端

Python笔记:1 Python与Pycharm安装配置

一、Python 环境安装

windows下载网址:https://www.python.org/ftp/python/3.6.8/python-3.6.8-amd64.exe

 python-3.6.8-amd64.exe

linux下载网址:https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tgz

Python-3.6.8.tgz

1.1 Windows 安装

 验证:

 1.2 Linux 环境安装

yum install -y gcc
yum install -y zlib*
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

tar -zxvf Python-3.6.8.tgz
cd Python-3.6.8
./configure --prefix=/opt/python3 --with-ssl
make && make install

ln -s /opt/python3/bin/python3 /usr/bin/python3
ln -s /opt/python3/bin/pip3 /usr/bin/pip3
vi /etc/profile
PATH=$PATH:$HOME/bin:
PATH=$PATH:$HOME/bin:/opt/python3/bin
source /etc/profile

测试:

$ python3
Python 3.6.8 (default, Nov 12 2021, 16:49:34) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print("Hello")
Hello
>>>

二、Pycharm 安装

下载网址:https://download.jetbrains.com.cn/python/pycharm-community-2021.2.3.exe

pycharm-community-2021.2.3.exe 

2.1 Windows 环境安装

发表评论:

Copyright Your WebSite.Some Rights Reserved.