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

前端 未结 11 1289
既然无缘
既然无缘 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:32

    When I ran the pip install virtualenv command I got:

    Requirement already satisfied: virtualenv in c:\directory\to\appdata\roaming\python\python36\site-packages
    

    so I tried forcing upgrade:

    pip install --upgrade --force virtualenv
    
    0 讨论(0)
  • 2020-11-30 04:32

    To install to a specific folder e.g E:\publish

    pip install virtualenv

    virtualenv .

    0 讨论(0)
  • 2020-11-30 04:35

    Try executing virtualenv.exe from its absolute path, like in my case i found it in C:\Users\\AppData\Roaming\Python\Python37\Scripts\virtualenv.exe.

    I tried this and it worked, here refer the logs as follows:

    Using base prefix 'c:\users\\appdata\local\programs\python\python37-32' New python executable in C:\somedir\dir2\dir3\ML_1\ml\env\Scripts\python.exe Installing setuptools, pip, wheel... done.

    0 讨论(0)
  • 2020-11-30 04:38

    Run pip uninstall virtualenv and then pip install virtualenv

    0 讨论(0)
  • 2020-11-30 04:41

    Run CMD as administrator and then enter

    pip uninstall virtualenv
    

    then re-run CMD as administrator and run

    pip install virtualenv
    
    0 讨论(0)
提交回复
热议问题