下载安装在这里不累述了,去官网下载安装即可,注意安装时候选择添加到系统的环境变量。

Python 2 和 Python 3安装好之后,打开安装的路径,将对应的python.exe文件改成各自的版本号的python2.exe python3.exe 。

window 10 环境下Python 2与Python 3共存以及virtualenv的使用

window 10 环境下Python 2与Python 3共存以及virtualenv的使用

使用时候直接在cmd中输入python 2或者 python 3 :

window 10 环境下Python 2与Python 3共存以及virtualenv的使用

pip的使用:

pythonX  -m pip install/list 

window 10 环境下Python 2与Python 3共存以及virtualenv的使用

在python3环境下新建env(要先安装vritualenv模块),对开发环境进行隔离:

window 10 环境下Python 2与Python 3共存以及virtualenv的使用





相关文章:

  • 2021-08-26
  • 2021-06-30
  • 2021-11-27
  • 2021-11-27
  • 2021-11-23
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-16
  • 2021-06-04
  • 2021-12-07
  • 2021-06-14
  • 2022-12-23
  • 2021-05-02
相关资源
相似解决方案