当前位置:   article > 正文

python下载过程安装路径,python版本下载如何选择_python安装下载位置

python安装下载位置

大家好,小编来为大家解答以下问题,下载python需要设置环境变量吗,python下载过程安装路径,现在让我们一起来看看吧!

一、pycharm下载、安装

1、下载地址: 点击跳转
官网:https://www.jetbrains.com/pycharm/download/#section=windows

2、下载:
Alt
3、安装:
双击打开 —> next
Alt
选中 —> 【next】;
Alt
【next】—> 【finish】
桌面上就会出现pycharm图标;
Alt
·

二、Python下载、安装

1、下载地址: 点击进入
2、进入官网后,点击下载;
Alt
Alt
3、下载好后,配置环境变量;
(1)复制路径
Alt
(2)打开高级系统设置
Alt
(3)【环境变量】— 双击【path】
Alt
(4)点击【新建】,将刚才复制的路径粘贴进去;
Alt
(5)一直点【确定】;

4、双击,开始安装:
Alt
Alt

安装完成,点击close关闭;
Alt
·

三、在pycharm上配置python

1、双击打开pycharm;
2、新建项目文件;
Alt
Alt
弹出这个,直接关闭;
Alt

3、添加解释器:
Alt

Alt
成功如下:

Alt
4、打印成功:标志配置完成
Alt
5、新建一个python file 文件:
Alt
将以下代码粘贴过去:

  1. #!/usr/bin/env python3
  2. #-*- coding: utf-8 -*-
  3. #@Author: dong
  4. #@Date: 2018-07-05 19:37:42
  5. #@Env: python 3.6
  6. #@Github: https://github.com/PerpetualSmile
  7. from turtle import *
  8. #无轨迹跳跃
  9. def my_goto(x, y):
  10. penup()
  11. goto(x, y)
  12. pendown()
  13. #眼睛
  14. def eyes():
  15. fillcolor("#ffffff")
  16. begin_fill()
  17. tracer(False)
  18. a = 2.5
  19. for i in range(120):
  20. if 0 <= i < 30 or 60 <= i < 90:
  21. a -= 0.05
  22. lt(3)
  23. fd(a)
  24. else:
  25. a += 0.05
  26. lt(3)
  27. fd(a)
  28. tracer(True)
  29. end_fill()
  30. #胡须
  31. def beard():
  32. my_goto(-32, 135)
  33. seth(165)
  34. fd(60)
  35. my_goto(-32, 125)
  36. seth(180)
  37. fd(60)
  38. my_goto(-32, 115)
  39. seth(193)
  40. fd(60)
  41. my_goto(37, 135)
  42. seth(15)
  43. fd(60)
  44. my_goto(37, 125)
  45. seth(0)
  46. fd(60)
  47. my_goto(37, 115)
  48. seth(-13)
  49. fd(60)
  50. #嘴巴
  51. def mouth():
  52. my_goto(5, 148)
  53. seth(270)
  54. fd(100)
  55. seth(0)
  56. circle(120, 50)
  57. seth(230)
  58. circle(-120, 100)
  59. #围巾
  60. def scarf():
  61. fillcolor('#e70010')
  62. begin_fill()
  63. seth(0)
  64. fd(200)
  65. circle(-5, 90)
  66. fd(10)
  67. circle(-5, 90)
  68. fd(207)
  69. circle(-5, 90)
  70. fd(10)
  71. circle(-5, 90)
  72. end_fill()
  73. #鼻子
  74. def nose():
  75. my_goto(-10, 158)
  76. seth(315)
  77. fillcolor('#e70010')
  78. begin_fill()
  79. circle(20)
  80. end_fill()
  81. #黑眼睛
  82. def black_eyes():
  83. seth(0)
  84. my_goto(-20, 195)
  85. fillcolor('#000000')
  86. begin_fill()
  87. circle(13)
  88. end_fill()
  89. pensize(6)
  90. my_goto(20, 205)
  91. seth(75)
  92. circle(-10, 150)
  93. pensize(3)
  94. my_goto(-17, 200)
  95. seth(0)
  96. fillcolor('#ffffff')
  97. begin_fill()
  98. circle(5)
  99. end_fill()
  100. my_goto(0, 0)
  101. #脸
  102. def face():
  103. fd(183)
  104. lt(45)
  105. fillcolor('#ffffff')
  106. begin_fill()
  107. circle(120, 100)
  108. seth(180)
  109. # print(pos())
  110. fd(121)
  111. pendown()
  112. seth(215)
  113. circle(120, 100)
  114. end_fill()
  115. my_goto(63.56,218.24)
  116. seth(90)
  117. eyes()
  118. seth(180)
  119. penup()
  120. fd(60)
  121. pendown()
  122. seth(90)
  123. eyes()
  124. penup()
  125. seth(180)
  126. fd(64)
  127. #头型
  128. def head():
  129. penup()
  130. circle(150, 40)
  131. pendown()
  132. fillcolor('#00a0de')
  133. begin_fill()
  134. circle(150, 280)
  135. end_fill()
  136. #画哆啦A梦
  137. def Doraemon():
  138. # 头部
  139. head()
  140. # 围脖
  141. scarf()
  142. # 脸
  143. face()
  144. # 红鼻子
  145. nose()
  146. # 嘴巴
  147. mouth()
  148. # 胡须
  149. beard()
  150. # 身体
  151. my_goto(0, 0)
  152. seth(0)
  153. penup()
  154. circle(150, 50)
  155. pendown()
  156. seth(30)
  157. fd(40)
  158. seth(70)
  159. circle(-30, 270)
  160. fillcolor('#00a0de')
  161. begin_fill()
  162. seth(230)
  163. fd(80)
  164. seth(90)
  165. circle(1000, 1)
  166. seth(-89)
  167. circle(-1000, 10)
  168. # print(pos())
  169. seth(180)
  170. fd(70)
  171. seth(90)
  172. circle(30, 180)
  173. seth(180)
  174. fd(70)
  175. # print(pos())
  176. seth(100)
  177. circle(-1000, 9)
  178. seth(-86)
  179. circle(1000, 2)
  180. seth(230)
  181. fd(40)
  182. # print(pos())
  183. circle(-30, 230)
  184. seth(45)
  185. fd(81)
  186. seth(0)
  187. fd(203)
  188. circle(5, 90)
  189. fd(10)
  190. circle(5, 90)
  191. fd(7)
  192. seth(40)
  193. circle(150, 10)
  194. seth(30)
  195. fd(40)
  196. end_fill()
  197. # 左手
  198. seth(70)
  199. fillcolor('#ffffff')
  200. begin_fill()
  201. circle(-30)
  202. end_fill()
  203. # 脚
  204. my_goto(103.74, -182.59)
  205. seth(0)
  206. fillcolor('#ffffff')
  207. begin_fill()
  208. fd(15)
  209. circle(-15, 180)
  210. fd(90)
  211. circle(-15, 180)
  212. fd(10)
  213. end_fill()
  214. my_goto(-96.26, -182.59)
  215. seth(180)
  216. fillcolor('#ffffff')
  217. begin_fill()
  218. fd(15)
  219. circle(15, 180)
  220. fd(90)
  221. circle(15, 180)
  222. fd(10)
  223. end_fill()
  224. # 右手
  225. my_goto(-133.97, -91.81)
  226. seth(50)
  227. fillcolor('#ffffff')
  228. begin_fill()
  229. circle(30)
  230. end_fill()
  231. # 口袋
  232. my_goto(-103.42, 15.09)
  233. seth(0)
  234. fd(38)
  235. seth(230)
  236. begin_fill()
  237. circle(90, 260)
  238. end_fill()
  239. my_goto(5, -40)
  240. seth(0)
  241. fd(70)
  242. seth(-90)
  243. circle(-70, 180)
  244. seth(0)
  245. fd(70)
  246. #铃铛
  247. my_goto(-103.42, 15.09)
  248. fd(90)
  249. seth(70)
  250. fillcolor('#ffd200')
  251. # print(pos())
  252. begin_fill()
  253. circle(-20)
  254. end_fill()
  255. seth(170)
  256. fillcolor('#ffd200')
  257. begin_fill()
  258. circle(-2, 180)
  259. seth(10)
  260. circle(-100, 22)
  261. circle(-2, 180)
  262. seth(180-10)
  263. circle(100, 22)
  264. end_fill()
  265. goto(-13.42, 15.09)
  266. seth(250)
  267. circle(20, 110)
  268. seth(90)
  269. fd(15)
  270. dot(10)
  271. my_goto(0, -150)
  272. # 画眼睛
  273. black_eyes()
  274. if __name__ == '__main__':
  275. screensize(800,600, "#f0f0f0")
  276. pensize(3) # 画笔宽度
  277. speed(9) # 画笔速度
  278. Doraemon()
  279. my_goto(100, -300)
  280. write('by dongdong', font=("Bradley Hand ITC", 30, "bold"))
  281. mainloop()

【运行结果】:
Alt

·

四、配置镜像源

1、这里是一些比较好用的镜像源:
清华:点击跳转
https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:点击跳转
http://mirrors.aliyun.com/pypi/simple/
中国科技大学: 点击跳转
https://pypi.mirrors.ustc.edu.cn/simple/

2、手动配置:

	pip install 下载的模块名 -i https://pypi.tuna.tsinghua.edu.cn/simple

eg. 要下载numpy这个模块,执行以下命令:

	pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple

Alt

3、永久配置镜像源:
这个配置一定要添加!
(1)方法一
到cmd执行如下命令创建pip.ini:

	pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

Alt
然后把这个路径添加到系统环境变量。(过程略)
·

五、安装插件

1、进入设置界面;
Alt

(1)自动补码神器 ——TabNine

Alt
安装完成后:
Alt
Alt
重启后,有这个标志,说明成功;
Alt
测试一下,已经开始有提示了~
Alt

(2)汉化

不建议汉化,不管英语好不好,都要去适应这个英语界面!!
Alt
Alt
Alt

·

六、VSCode的Python环境配置

1、下载安装VSCode
详细步骤见链接: 点击查看

2、安装完成后,搜索 Python ;
选择第一个,点击【安装】;
Alt
3、添加配置:
如下图,选择左边的第三个图标,在点击“Add Configuration”添加配置文件,并选择Python选项python编程代码复制
Alt

选择Python后会生成Python的配置文件launch.json,加入Python的安装目录:<“pythonPath”: “C:\SorftWare\Python3.7”,>,记得是双斜杆,否则会报错。
Alt

4、添加用户设置

点击File->Prefrences->Settings,生成一个“User Settings”文件,填入Python安装目录:<“python.pythonPath”: “C:\SorftWare\Python3.7”,>,如下图所示
Alt
5、新建hello.py

输入print(“hello”),点击运行,在下面的调试窗口会输出hello,没有报错就说明已经配置成功了,接下来就可以进行Python的开发~

·

参考文章:

1、python从入门到精通
2、pycharm安装教程
3、VSCode配置Python开发环境

文章知识点与官方知识档案匹配,可进一步学习相关知识
Python入门技能树首页概览418699 人正在系统学习中
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/578133
推荐阅读
相关标签
  

闽ICP备14008679号