centos7 python3,mysqlclient,pycharm(汉化)安装(笔记)
程序员文章站
2022-03-03 16:56:42
...
python3 安装
yum -y install ncurses ncurses-devel
yum -y install zlib zlib-devel
yum -y install bzip2 bzip2-devel
yum -y install ncurses ncurses-devel
yum -y install readline readline-devel
yum -y install openssl openssl-devel
yum -y install openssl-static
yum -y install xz lzma xz-devel
yum -y install sqlite sqlite-devel
yum -y install gdbm gdbm-devel
yum -y install tk tk-devel
yum -y install libffi libffi-devel
wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz
mkdir -p /install/Python
tar -zxvf Python-3.7.1.tgz
cd Python-3.7.1
./configure --prefix=/install/Python
make&&make install
ln -s /install/Python/bin/python3 /usr/bin/python3
ln -s /install/Python/bin/pip3 /usr/bin/pip3
安装 mysqlclient
yum install mysql-devel
pip3 install mysqlclient
pycharm 安装
wget https://download.jetbrains.8686c.com/python/pycharm-professional-2019.1.2.tar.gz
tar -xf pycharm-professional-2019.1.2.tar.gz
cd pycharm-2019.1.2/bin
./pycharm.sh
***
YZVR7WDLV8-eyJsaWNlbnNlSWQiOiJZWlZSN1dETFY4IiwibGljZW5zZWVOYW1lIjoiamV0YnJhaW5zIGpzIiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiSUkiLCJwYWlkVXBUbyI6IjIwMTktMTEtMjYifSx7ImNvZGUiOiJBQyIsInBhaWRVcFRvIjoiMjAxOS0xMS0yNiJ9LHsiY29kZSI6IkRQTiIsInBhaWRVcFRvIjoiMjAxOS0xMS0yNiJ9LHsiY29kZSI6IlBTIiwicGFpZFVwVG8iOiIyMDE5LTExLTI2In0seyJjb2RlIjoiR08iLCJwYWlkVXBUbyI6IjIwMTktMTEtMjYifSx7ImNvZGUiOiJ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GsiN/lWLl4JdR3lJkZzlpFdiHijoVRdWeSWqM4y0t23c92HXKrgppoSV18XMxrWVdoSM3nuMHwxGhFyde05OdDtLpCv+jlWf5REAHHA201pAU6bJSZINyHDUTB+Beo28rRXSwSh3OUIvYwKNVeoBY+KwOJ7WnuTCUq1meE6GkKc4D/cXmgpOyW/1SmBz3XjVIi/zprZ0zf3qH5mkphtg6ksjKgKjmx1cXfZAAX6wcDBNaCL+Ortep1Dh8xDUbqbBVNBL4jbiL3i3xsfNiyJgaZ5sX7i8tmStEpLbPwvHcByuf59qJhV/bZOl8KqJBETCDJcY6O2aqhTUy+9x93ThKs1GKrRPePrWPluud7ttlgtRveit/pcBrnQcXOl1rHq7ByB8CFAxNotRUYL9IF5n3wJOgkPojMy6jetQA5Ogc8Sm7RG6vg1yow==
给pycharm.sh加入应用程序列表,并创建快捷方式
vim /usr/share/applications/pycharm.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Pycharm
Exec=/install/pycharm-2019.1.2/bin/pycharm.sh
Icon=/install/pycharm-2019.1.2/bin/pycharm.png
Categories=Application
pycharm.汉化
wget https://raw.githubusercontent.com/pingfangx/jetbrains-in-chinese/462943919d17dfb5a0c12695873e66c5ae26baaa/PyCharm/resources_zh_CN_PyCharm_2019.1_r1.jar
cp resources_zh_CN_PyCharm_2019.1_r1.jar /install/pycharm-2019.1.2c/lib/