-2

I have been trying for two days on installing virtualenv on cmd prompt. Does anyone have a solution to this problem?

Luke
  • 9
  • 1
  • 5

1 Answers1

1

I think you are using Windows.

To install virtualenv in windows, follow these steps:

  1. Open scripts folder where pip is located in cmd
  2. Type pip install virtualenv
  3. Then you should install virtualenv wrapper for windows. Type this code pip install virtualenvwrapper-win
  4. Create project dir: mkvirtualenv myproject
  5. Set myproject dir as current dir: setprojectdir ..../myprojectdir
  6. You are good to go. When you want to deactivate, simply type deactivate
Ekrem Gurdal
  • 1,118
  • 13
  • 14