How to get virtualenv to use dist-packages on Ubuntu?

后端 未结 5 1917
一向
一向 2020-12-13 20:06

I know that virtualenv, if not passed the --no-site-packages argument when creating a new virtual environment, will link the packages in /usr/local/lib/py

5条回答
  •  萌比男神i
    2020-12-13 21:06

    In the directory site-packages, create a file dist.pth In the file dist.path, put the following: ../dist-packages

    Now deactivate and activate your virtualenv. You should be set.

提交回复
热议问题