Virtualenv keeps loading global site packages on Windows

前端 未结 3 592
[愿得一人]
[愿得一人] 2021-02-06 07:49

I\'ve looked around on SO, and the answers I have found to my problem haven\'t allowed me to solve it yet.

I want to use isolated virtualenv environments, but for one re

3条回答
  •  轮回少年
    2021-02-06 08:09

    I had the same "Access denied" problems as Dan with m0nonoke's answer on my Windows 7 setup using cmd.exe.

    But I found this work around using a replacement shell TCC/LE and a customised startup file...

    Under working directory create subdirectory config. In this directory create startup file for TCC/LE called tcstart.btm

    @echo off
    rem Override system python binding to handle virtualenvironments
    set .py;.pyc=python.exe
    

    Now create (copy) TCC/LE shortcut on desktop and rename it appropriately. Open Properties for shortcut and add to Target “C:\django\config\tcstart.btm”. You probably want to set Start in to something useful, like C:\django

    Solution found in this guide on installing Django and Windows.

提交回复
热议问题