...

————————————————

7.19更新

破解pycharm

来自:https://blog.csdn.net/qq_39455378/article/details/137547750

六、Pycharm安装与配置

1. https://www.jetbrains.com/zh-cn/pycharm/ 下载pycharm

破解方法

链接:https://pan.baidu.com/s/1GROEwqmU6mKpF7bv_MhnTQ?pwd=gdsx

提取码:gdsx

下载解压完运行一下这个,须臾显示Done(要等十几秒), 重新打开 Pycharm 后,复制下面的激活码(对,就是这么长):

EUWT4EE9X2-eyJsaWNlbnNlSWQiOiJFVVdUNEVFOVgyIiwibGljZW5zZWVOYW1lIjoic2lnbnVwIHNjb290ZXIiLCJhc3NpZ25lZU5hbWUiOiIiLCJhc3NpZ25lZUVtYWlsIjoiIiwibGljZW5zZVJlc3RyaWN0aW9uIjoiIiwiY2hlY2tDb25jdXJyZW50VXNlIjpmYWxzZSwicHJvZHVjdHMiOlt7ImNvZGUiOiJQU0kiLCJmYWxsYmFja0RhdGUiOiIyMDI1LTA4LTAxIiwicGFpZFVwVG8iOiIyMDI1LTA4LTAxIiwiZXh0ZW5kZWQiOnRydWV9LHsiY29kZSI6IlBDIiwiZmFsbGJhY2tEYXRlIjoiMjAyNS0wOC0wMSIsInBhaWRVcFRvIjoiMjAyNS0wOC0wMSIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUFBDIiwiZmFsbGJhY2tEYXRlIjoiMjAyNS0wOC0wMSIsInBhaWRVcFRvIjoiMjAyNS0wOC0wMSIsImV4dGVuZGVkIjp0cnVlfSx7ImNvZGUiOiJQV1MiLCJmYWxsYmFja0RhdGUiOiIyMDI1LTA4LTAxIiwicGFpZFVwVG8iOiIyMDI1LTA4LTAxIiwiZXh0ZW5kZWQiOnRydWV9LHsiY29kZSI6IlBDV01QIiwiZmFsbGJhY2tEYXRlIjoiMjAyNS0wOC0wMSIsInBhaWRVcFRvIjoiMjAyNS0wOC0wMSIsImV4dGVuZGVkIjp0cnVlfV0sIm1ldGFkYXRhIjoiMDEyMDIyMDkwMlBTQU4wMDAwMDUiLCJoYX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RIpb1hUHAk0foMSNM9MCEAv8wSAYDVR0jBEEwP4AUo562SGdCEjZBvW3gubSgUouX8bOhHKQaMBgxFjAUBgNVBAMMDUpldFByb2ZpbGUgQ0GCCQDSbLGDsoN54TATBgNVHSUEDDAKBggrBgEFBQcDATALBgNVHQ8EBAMCBaAwDQYJKoZIhvcNAQELBQADggIBABqRoNGxAQct9dQUFK8xqhiZaYPd30TlmCmSAaGJ0eBpvkVeqA2jGYhAQRqFiAlFC63JKvWvRZO1iRuWCEfUMkdqQ9VQPXziE/BlsOIgrL6RlJfuFcEZ8TK3syIfIGQZNCxYhLLUuet2HE6LJYPQ5c0jH4kDooRpcVZ4rBxNwddpctUO2te9UU5/FjhioZQsPvd92qOTsV+8Cyl2fvNhNKD1Uu9ff5AkVIQn4JU23ozdB/R5oUlebwaTE6WZNBs+TA/qPj+5/we9NH71WRB0hqUoLI2AKKyiPw++FtN4Su1vsdDlrAzDj9ILjpjJKA1ImuVcG329/WTYIKysZ1CWK3zATg9BeCUPAV1pQy8ToXOq+RSYen6winZ2OO93eyHv2Iw5kbn1dqfBw1BuTE29V2FJKicJSu8iEOpfoafwJISXmz1wnnWL3V/0NxTulfWsXugOoLfv0ZIBP1xH9kmf22jjQ2JiHhQZP7ZDsreRrOeIQ/c4yR8IQvMLfC0WKQqrHu5ZzXTH4NO3CwGWSlTY74kE91zXB5mwWAx1jig+UXYc2w4RkVhy0//lOmVya/PEepuuTTI4+UJwC7qbVlh5zfhj8oTNUXgN0AOc+Q0/WFPl1aw5VV/VrO8FCoB15lFVlpKaQ1Yh+DVU8ke+rt9Th0BCHXe0uZOEmH0nOnH/0onD

粘贴到输入框内,点击 Activate 按钮,重进一下pycharm即可破解。

2.设置、配置

----------------------------------------

PyCharm是Python著名的Python集成开发环境(IDE)

https://www.jetbrains.com/pycharm/download/?section=linux

下载社区版ARM64pycharm,VNC传输到树莓派

搭建pycharm所需的JAVA环境:

命令行

sudo apt install default-jre -y

进入安装包所在的文件夹,解压

cd Downloads-->tar zxvf py+Tab

(填写前两个字母Tab可以自动填充文件名称)

解压完成重新进入安装包bin目录下的.sh文件,通过sh命令运行

cd
cd Downloads/py+Tab/bin
sh py+Tab

1.可以在软件直接开始目录创建快捷方式

2.用命令行在菜单栏和桌面创建打开文件的图标

(菜单栏)

-->sudo nano /usr/share/applications/pycharm.desktop

-->输入六行:

[Desktop Entry]

Name=Pycharm

Type=Application

Exec=/home/admin/Downloads/pycharm-community-2024.1.3/bin/pycharm.sh

Icon=/home/admin/Downloads/pycharm-community-2024.1.3/bin/pycharm.png

Categories=Development

Ctrl+O写入,回车,Ctrl+X退出

(桌面)

-->nano ~/Desktop/pycharm.desktop

-->输入五行:

[Desktop Entry]

Type=Link

Name=Pycharm

Icon=/home/admin/Downloads/pycharm-community-2024.1.3/bin/pycharm.png

URL=/usr/share/applications/pycharm.desktop

Ctrl+O写入,回车,Ctrl+X退出

PyTorch

PyTorch是一个开源的Python机器学习库,基于Torch,用于自然语言处理应用程序。PyTorch既可以看作加入了GPU支持的numpy,同时也可以看成一个拥有自动求导功能的强大的深度神经网络

首先进行pytorch的一些基础依赖,然后再进行pytorch的安装。

安装opencv

  1. 安装相关前置安装包

-->sudo apt-get install libopenblas-dev m4 libblas-dev cmake

-->sudo apt-get install python3-pip python3-numpy python3-dev

-->sudo apt-get install python3-opencv

-->sudo apt-get install python3-matplotlib

安装完成后,在命令行中打开python输入import cv2进行测试,显示结果如上说明opencv成功

下载Pytorch

-->sudo apt-get install python3-torch

-->sudo apt-get install python3-torchvision

-->sudo apt-get install python3-torchaudio

进行pytorch测试,输入

-->python3

接着输入

-->import numpy as np

没反应正常,继续输入

-->print(np.__version__)

-->import torch

没反应正常,继续输入

-->print(torch.__version__)

这样torch环境就已经安装好了