程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

CMD calls different versions of Python

編輯:Python

Catalog

  • 1 see Python edition
  • 2 Set call name
  • 3 demonstration
  • 4 application


Tips : Here you can add the general content to be recorded in this article :

There are several versions installed in the computer Python, Plus the integrated environment …… This article is a record .

【 System environment 】
Win7-64


Tips : The following is the main body of this article , The following cases can be used for reference

1 see Python edition

There are three major versions :Python 2,Python 3.8 and PyPy Of 3.8.12. because PyPy There are multiple callable names under the installation directory of , So it all shows . In fact, it is a program .


2 Set call name

  1. Because in the system environment variable settings ,Python 2 Put the directory in front , therefore cmd type Python, Just call Python 2
  2. because PyCharm Of Terminal And cmd identical , So type Python, Also call Python 2
  3. take Python 3.8 Install under directory Python.exe Rename it to Python3.exe, type Python3 Directly callable

3 demonstration


4 application

  1. After distinguishing , Can be in different Python Use on version pip Command line .

  2. The same command line is on a different Python All versions are applicable

  3. It's fine too In different Python Run scripts in version .

  4. Each installation is different Python edition , In addition to adding the installation directory PATH, You should also install the \Scripts\ Path join PATH. This is necessary , essential !

  5. Unexpectedly, it calls Anaconda Integrated Python, What a surprise !




  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved