好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

python基础--环境的安装

python3下载:

Python 官网:https://HdhCmsTestpython.org/

环境配置:https://HdhCmsTesthdhcms测试数据/python3/python3-install.html

 

1.DOS下进入python环境:

python 2:py -2

python 3:py -3

2.退出python环境 exit()/quit()/ctrl+z+enter

3.pip命令:(要在非pyhton环境下执行)

  升级命令:

    py -3 -m pip install --upgarde pip /py -3 -m pip install -u pip(pip为包名)

  安装命令:

     py -3 -m pip install nose (nose为包名)               py -3 -m pip install nose ==1.2.8   #指定版本安装   卸载命令:     py -3 -m pip uninstall nose   查看安装包的版本:

    py -3 -m pip show nose   #非python环境下命令

    import nose  #python环境下命令,能引入说明安装成功

  搜索命令:     py -3 -m pip search "nose"    列出已安装的包:     py -3 -m pip list     解释器 1.交互式编程:         1.1我们可以在命令提示符中输入"Python"命令来启动Python解释器         1.2也可以在DOS中输入py -3进去交互式编程模式

 

 

 

 

2.脚本式编程:        2.1将代码写到  hello.py 文件中        2.2通过以下命令执行该脚本:py -3 C:\Users\Administrator\Desktop\hello.py    

查看更多关于python基础--环境的安装的详细内容...

  阅读:27次