'python3' is not recognized as an internal or external command, operable program or batch file

后端 未结 8 742
猫巷女王i
猫巷女王i 2020-11-29 00:07

I am using Python 3.5.2 version on Windows 7 and tried using python3 app.py. I am getting this error message:

\'python3\' is not recognized as an         


        
8条回答
  •  臣服心动
    2020-11-29 00:38

    Python3.exe is not defined in windows

    Specify the path for required version of python when you need to used it by creating virtual environment for your project

    Python 3

    virtualenv --python=C:\PATH_TO_PYTHON\python.exe environment

    Python2

    virtualenv --python=C:\PATH_TO_PYTHON\python.exe environment

    then activate the environment using

    .\environment\Scripts\activate.ps1

提交回复
热议问题