简体   繁体   中英

PATH Environment Variable in Custom Python Environment in Visual Studio Altered

I have a custom Python environment set in Visual Studio for ActivePython. However, it doesn't have access to the system PATH variable. When I type this in the Visual Studio Python Interactive:

import os
os.environ['PATH']

I get:

';C:\\Python35\\lib\\site-packages\\pypiwin32_system32'

It is messing up my Python projects. However, when I use a different environment, it displays the full PATH. It also works fine using the environment outside Visual Studio.

How could I have this Python environment have full access to PATH?

转到工具->选项-> Python工具->常规->忽略系统范围内的PYTHONPATH变量

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM