1

I am new to Python and decided to duplicate a virtualenv and work on the new cloned env.

Here's what I did

  1. pip freeze > requirements.txt,
  2. virtualenv newEnv
  3. source newEnv/bin/activate
  4. pip install -r requirements.txt

However I get the error

ImportError: statsmodels requires numpy

Manually doing pip install numpy I repeated step 4 again and got the error

ImportError: statsmodels requires scipy

Manually doing pip install scipy I repeated step 4 again and got the error

ImportError: statsmodels requires pandas

How can we get the pip install -r requirements.txt to work smoothly without having to manually install the modules?

Nyxynyx
  • 61,411
  • 155
  • 482
  • 830

0 Answers0