System Libraries Are Included in Project

已回答

Hello,

I created a virtual environment

python -m venv lpp3d

I selected it in the interpreter configuration window for the project, under "previously configured environment." pyvenv.cfg shows

home = C:\Python310
include-system-site-packages = false

Why are the system libraries showing up in the project? This happened in my fallback version, 2019.1.4, so I installed Community Edition, and it happens there, too.

Thanks.

mp

PyCharm 2021.3.1 (Community Edition)
Build #PC-213.6461.77, built on December 28, 2021
Runtime version: 11.0.13+7-b1751.21 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2034M
Cores: 4

1

PyCharm doesn't look into pyvenv.cfg to check if the system libraries should be included or not.

Have you tried creating a virtual environment using PyCharm's interface and unchecking the option Inherit global site-packages?

0

请先登录再写评论。