VirtualEnv/Pip trying to install packages globally

后端 未结 3 474
春和景丽
春和景丽 2020-12-17 00:53

Edit #2 Solution found; see below.

I\'m writing a small application in Flask using VirtualEnv. This is far from the first time I\'ve done this, but

相关标签:
3条回答
  • 2020-12-17 01:16

    I had the same problem. For me, the cause was that my virtualenv had spaces in the path.

    Moving the virtualenv to a spaceless path solved the problem.

    0 讨论(0)
  • 2020-12-17 01:16

    Use this link (Python packages not installing in virtualenv using pip).

    If your shebang is ok then ensure you do not use "sudo -H" when installing to the virtual environment.

    0 讨论(0)
  • 2020-12-17 01:25

    If you have renamed your project directory containing ENV - virtual environment directory, try wiping out ENV directory and recreate virtualenv and activate it and reinstall pip dependencies.

    TL-DR; Delete virtual environment, create new one, activate it and issue pip commands again.

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