码迷,mamicode.com
首页 > 其他好文 > 详细

PyCharm 安装常用设置

时间:2019-09-12 13:39:20      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:eai   nrv   pre   serve   解释器   http   dag   vnx   ++   

一、Pycharm

  (一)、安装

    1、在百度找到PyCharm官网,http://www.jetbrains.com

  技术图片

 

     2、下载

  技术图片

 

     3、选择版本(根据自己的喜好选择,我这里选的是其他版本,2017年3月专业版)

  技术图片

 

   技术图片

 

     4、下载之后进行安装,windows是exe,(下一步下一步就可以,根据个人喜好选择安装)

  技术图片

  (二)、激活

    1、首次启动会让你激活产品

  激活途径很多,你可以选择付费购买激活码;

    2、激活码激活

  激活码分很多种,一般情况下,能百度到的激活码多少多少都是可以用的(不能完全确定)

      一、修改hosts文件(需要在管理员模式下)

  技术图片

 

   添加这段代码到hosts文件中。(保存关闭)

0.0.0.0 account.jetbrains.com

  提供几个收集可用的激活码

  Ⅰ

AWAC5NN6E4-eyJsaWNlbnNlSWQiOiJBV0FDNU5ONkU0IiwibGljZW5zZWVOYW1lIjoibGIgb2QiLCJhc3NpZ25lZU5hbWUiOiIiLCJhc3NpZ25lZUVtYWlsIjoiIiwibGljZW5zZVJlc3RyaWN0aW9uIjoiRm9yIGVkdWNhdGlvbmFsIHVzZSBvbmx5IiwiY2hlY2tDb25jdXJyZW50VXNlIjpmYWxzZSwicHJvZHVjdHMiOlt7ImNvZGUiOiJJSSIsInBhaWRVcFRvIjoiMjAxOS0wNy0yOSJ9LHsiY29kZSI6IlJTMCIsInBhaWRVcFRvIjoiMjAxOS0wNy0yOSJ9LHsiY29kZSI6IldTIiwicGFpZFVwVG8iOiIyMDE5LTA3LTI5In0seyJjb2RlIjoiUkQiLCJwYWlkVXBUbyI6IjIwMTktMDctMjkifSx7ImNvZGUiOiJSQyIsInBhaWRVcFRvIjoiMjAxOS0wNy0yOSJ9LHsiY29kZSI6IkRDIiwicGFpZFVwVG8iOiIyMDE5LTA3LTI5In0seyJjb2RlIjoiREIiLCJwYWlkVX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jnye8NT1PAywoyl7RmiAVRE/EKwIDAQABo4GZMIGWMAkGA1UdEwQCMAAwHQYDVR0OBBYEFGEpG9oZGcfLMGNBkY7SgHiMGgTcMEgGA1UdIwRBMD+AFKOetkhnQhI2Qb1t4Lm0oFKLl/GzoRykGjAYMRYwFAYDVQQDDA1KZXRQcm9maWxlIENBggkA0myxg7KDeeEwEwYDVR0lBAwwCgYIKwYBBQUHAwEwCwYDVR0PBAQDAgWgMA0GCSqGSIb3DQEBCwUAA4ICAQC9WZuYgQedSuOc5TOUSrRigMw4/+wuC5EtZBfvdl4HT/8vzMW/oUlIP4YCvA0XKyBaCJ2iX+ZCDKoPfiYXiaSiH+HxAPV6J79vvouxKrWg2XV6ShFtPLP+0gPdGq3x9R3+kJbmAm8w+FOdlWqAfJrLvpzMGNeDU14YGXiZ9bVzmIQbwrBA+c/F4tlK/DV07dsNExihqFoibnqDiVNTGombaU2dDup2gwKdL81ua8EIcGNExHe82kjF4zwfadHk3bQVvbfdAwxcDy4xBjs3L4raPLU3yenSzr/OEur1+jfOxnQSmEcMXKXgrAQ9U55gwjcOFKrgOxEdek/Sk1VfOjvS+nuM4eyEruFMfaZHzoQiuw4IqgGc45ohFH0UUyjYcuFxxDSU9lMCv8qdHKm+wnPRb0l9l5vXsCBDuhAGYD6ss+Ga+aDY6f/qXZuUCEUOH3QUNbbCUlviSz6+GiRnt1kA9N2Qachl+2yBfaqUqr8h7Z2gsx5LcIf5kYNsqJ0GavXTVyWh7PYiKX4bs354ZQLUwwa/cG++2+wNWP+HtBhVxMRNTdVhSm38AknZlD+PTAsWGu9GyLmhti2EnVwGybSD2Dxmhxk3IPCkhKAK+pl0eWYGZWG3tJ9mZ7SowcXLWDFAk0lRJnKGFMTggrWjV8GYpw5bq23VmIqqDLgkNzuoog==

    3、注册服务器激活

  请参考

https://zhile.io/2018/08/17/jetbrains-license-server-crack.html

二、常用设置

  (一)、远程解释器

    1、在PyCharm中找到File-----》Settings------

  技术图片

    2、搜索框中输入:project interpreter

  技术图片

 

    3、在Project Interpreter:最后面点击倒三角,展开选项,选择Show All...(或者直接添加 Add Remote..)

  技术图片

 

     4、我采用了直接添加,在Deployment configuration 最后点击三个(。。。)

  技术图片

    5、添加远程机器

  技术图片

 

     6、选择远程存放文件位置,选择好之后确定就行了。

    技术图片

 

     7、选择解释器,(选择在远程机器的python环境)

    技术图片

  (二)、py脚本头自定义

    1、在PyCharm中找到File———》Settings———

  技术图片

    2、在搜索框中输入:File and code

  技术图片

 

 

     3、在侧面找到Python Script,消除默认的配置,输入自定义内容 

    技术图片

    4、以下是实现代码和效果图

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : ${DATE} ${TIME}
# @Author  : sky_king
# @home    : https://www.cnblogs.com/sky-k/
# @mail    : sky_king@aliyun.com
# @File    : ${NAME}.py
# @Software: PyCharm

  技术图片

 

 

 

 

PyCharm 安装常用设置

标签:eai   nrv   pre   serve   解释器   http   dag   vnx   ++   

原文地址:https://www.cnblogs.com/sky-k/p/11511174.html

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