User Tools

Site Tools


python:pycharm

This is an old revision of the document!


PyCharm IDE

PyCharm Linux Community edition:
https://www.jetbrains.com/pycharm/download/#section=linux
https://download-cdn.jetbrains.com/python/pycharm-community-2021.3.3.tar.gz

tar -xvzf pycharm-community-2021.3.3.tar.gz
sudo mv pycharm-community-2021.3.3 /opt/pycharm
/opt/pycharm/bin/pycharm.sh 

Add to menu and cinnamon panel launcher

cat > ~/.local/share/applications/pycharm.desktop << EOD
[Desktop Entry]
Name=PyCharm
Exec=/opt/pycharm/bin/pycharm.sh
Comment=
Terminal=false
Icon=/opt/pycharm/bin/pycharm.png
Type=Application
EOD

cp ~/.local/share/applications/pycharm.desktop ~/.cinnamon/panel-launchers/ 

#config numerical, so get the highest number file only
export configfile=$(ls ~/.cinnamon/configs/panel-launchers@cinnamon.org/*.json | sort -rn | head -1)

jq '.launcherList.value += ["pycharm.desktop"]' $configfile > $configfile.new
mv $configfile.new $configfile

Update PyCharm:
Open PyCharm, click settings cog icon in bottom left and check for updates.

Create new project from Github repo:
Git menu → Clone → paste github .git clone url → select new or attach to existing project

Configuring Pycharm to run Pyinstaller
https://stackoverflow.com/questions/33906539/configuring-pycharm-to-run-pyinstaller
https://stackoverflow.com/questions/19071910/how-to-my-exe-from-pycharm-project

Deployment
https://www.jetbrains.com/help/pycharm/tutorial-deployment-in-product.html#config

python/pycharm.1685357735.txt.gz · Last modified: by 127.0.0.1