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

前端 未结 11 1287
既然无缘
既然无缘 2020-11-30 04:04

i\'m completely new to the python and django.,after installation of python and django. i\'m trying to use virtualenv for django project purpose using virtula env . i install

11条回答
  •  有刺的猬
    2020-11-30 04:28

    There are three points that you need to consider:

    • Make sure that in the windows PATH variable there is an entry with your python installation and the scripts subfolder eg: C:\Program Files (x86)\Python36-32\ and C:\Program Files (x86)\Python36-32\Scripts\
    • When using pip install virtualenv, make sure that you run cmd as administrator. Otherwise, there might an access denied error during installation and virtualenv will not be installed properly.
    • Make sure that virtualenv has been installed correctly. Check in the python scripts subfolder - there must exist an .exe named virtualenv.exe. If not, uninstall will pip uninstall virtualenv and install again.

提交回复
热议问题